dion 02/01/28 23:03:00 Modified: latka build.xml Log: Added checkstyle targets Revision Changes Path 1.25 +30 -1 jakarta-commons/latka/build.xml Index: build.xml =================================================================== RCS file: /home/cvs/jakarta-commons/latka/build.xml,v retrieving revision 1.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- build.xml 28 Jan 2002 22:16:30 -0000 1.24 +++ build.xml 29 Jan 2002 07:03:00 -0000 1.25 @@ -1,4 +1,4 @@ -<!-- $Id: build.xml,v 1.24 2002/01/28 22:16:30 dion Exp $ --> +<!-- $Id: build.xml,v 1.25 2002/01/29 07:03:00 dion Exp $ --> <project name="commons-latka" default="build-java" basedir="."> <!-- patternset describing files to be copied from the doc directory --> @@ -351,5 +351,34 @@ <include name="**/*.ent"/> </fileset> </copy> + </target> + + <!-- ######################################################### --> + + <target name="check-checkstyle" depends="init"> + <condition property="available-checkstyle"> + <and> + <available file="${antlr.jar}"/> + <available file="${checkstyle.jar}"/> + <available file="${regexp.jar}"/> + </and> + </condition> + </target> + + <target name="checkstyle" depends="init,check-checkstyle" + description="Check source code meets project standards" + if="available-checkstyle"> + <taskdef name="checkstyle" + classname="com.puppycrawl.tools.checkstyle.CheckStyleTask"> + <classpath> + <pathelement location="${checkstyle.jar}" /> + <pathelement location="${regexp.jar}" /> + <pathelement location="${antlr.jar}" /> + </classpath> + </taskdef> + + <checkstyle memberPattern="^_[a-z][a-zA-Z0-9]*$"> + <fileset dir="${source.src.java}" includes="**/*.java"/> + </checkstyle> </target> </project>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>