fix error reporting

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114778 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
brett committed 2004-03-02 12:56:12 +00:00
1 parent d30c4af1cf
commit c952d8881d
1 file changed
+5 -14
+5 -14
View File
@@ -76,14 +76,9 @@
<j:if test="${sourcesPresent == 'true'}">
<j:catch var="exception">
<attainGoal name="checkstyle:run"/>
</j:catch>
<j:if test="${(exception != null)}">
<j:choose>
<j:when test="${exception.indexOf('unable to load header file') != '-1'}">
<ant:echo>
<util:file var="headerFile" name="${maven.checkstyle.header.file}"/>
<j:if test="${!headerFile.exists()}">
<ant:echo>
=================================================================
= W A R N I N G =
=================================================================
@@ -95,14 +90,10 @@
= A temporary solution is to create an empty LICENSE.txt file. =
= Though, we recommend that you edit this License. =
=================================================================
</ant:echo>
</j:when>
<j:otherwise>
<ant:fail message="${exception}"/>
</j:otherwise>
</j:choose>
</ant:echo>
</j:if>
<attainGoal name="checkstyle:run"/>
</j:if>
</goal>