vmassol 02/04/21 05:46:27
Modified: framework build.xml
Log:
only run checkstyle if it is available in the classpath
Revision Changes Path
1.6 +11 -2 jakarta-cactus/framework/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-cactus/framework/build.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- build.xml 14 Apr 2002 11:16:14 -0000 1.5
+++ build.xml 21 Apr 2002 12:46:27 -0000 1.6
@@ -396,10 +396,19 @@
<!--
========================================================================
- Perform a code audit using CheckStyle.
+ Perform a code audit using CheckStyle. Only performs the audit if
+ the checkstyle jar is in the Ant classpasth.
========================================================================
-->
- <target name="checkstyle" depends="init"
+ <target name="checkstyle.check">
+
+ <available property="checkstyle.present"
+ classname="com.puppycrawl.tools.checkstyle.CheckStyleTask"/>
+
+ </target>
+
+ <target name="checkstyle" depends="checkstyle.check,init"
+ if="checkstyle.present"
description="Perform a code audit using Checkstyle">
<taskdef name="checkstyle"
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>