Update of /cvsroot/checkstyle/checkstyle
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv5397
Modified Files:
build.xml
Log Message:
Set the "failureProperty" with a meaningful message (feature request 1725475).
Index: build.xml
===================================================================
RCS file: /cvsroot/checkstyle/checkstyle/build.xml,v
retrieving revision 1.208
retrieving revision 1.209
diff -C2 -d -r1.208 -r1.209
*** build.xml 12 Feb 2007 19:18:34 -0000 1.208
--- build.xml 4 Jun 2007 03:04:02 -0000 1.209
***************
*** 288,292 ****
<property name="check.config" location="checkstyle_checks.xml"/>
<property name="translation.severity" value="ignore"/>
! <checkstyle config="${check.config}">
<fileset dir="src/checkstyle"
includes="**/*.java,**/*.properties"
--- 288,295 ----
<property name="check.config" location="checkstyle_checks.xml"/>
<property name="translation.severity" value="ignore"/>
! <checkstyle config="${check.config}"
! failOnViolation="false"
! failureProperty="checkstyle.failure.property"
! >
<fileset dir="src/checkstyle"
includes="**/*.java,**/*.properties"
***************
*** 301,304 ****
--- 304,311 ----
file="suppressions.xml"/>
</checkstyle>
+
+ <fail if="checkstyle.failure.property"
+ message="Checkstyle failed: ${checkstyle.failure.property}"
+ />
</target>
|