vmassol     2003/03/17 02:19:50

  Modified:    integration/eclipse/org.apache.cactus.eclipse.runner
                        build.xml
  Log:
  Added checkstyle check for the eclipse runner plugin build
  
  Revision  Changes    Path
  1.8       +29 -1     
jakarta-cactus/integration/eclipse/org.apache.cactus.eclipse.runner/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: 
/home/cvs/jakarta-cactus/integration/eclipse/org.apache.cactus.eclipse.runner/build.xml,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- build.xml 13 Mar 2003 10:36:11 -0000      1.7
  +++ build.xml 17 Mar 2003 10:19:50 -0000      1.8
  @@ -233,7 +233,7 @@
            plugin structure.
          ========================================================================
       -->
  -     <target name="dist" depends="jar"
  +     <target name="dist" depends="checkstyle,jar"
          description="Generate the distributable files">
          
                <mkdir dir="${dist.bin.integration.dir}"/>
  @@ -265,6 +265,34 @@
                   <include name="LICENSE.*"/>
               </fileset>
           </copy>
  +
  +    </target>
  +
  +    <!--
  +       ========================================================================
  +         Perform a code audit using CheckStyle. Only performs the audit if
  +         the checkstyle jar is in the Ant classpasth.
  +       ========================================================================
  +    -->
  +    <target name="checkstyle" depends="init,init.checkstyle" 
  +        if="checkstyle.available"
  +        description="Perform a code audit using Checkstyle">
  +
  +        <mkdir dir="${target.dir}"/>
  +
  +        <checkstyle config="./checkstyle.xml" failOnViolation="true">
  +
  +            <fileset dir="${src.java.dir}">
  +                <include name="**/*.java"/>
  +            </fileset>
  +
  +            <formatter type="plain"/>
  +            <formatter type="xml"
  +                toFile="${target.dir}/checkstyle_results.xml"/>
  +
  +            <property key="checkstyle.header.file" file="./LICENSE.cactus"/>
  +
  +        </checkstyle>
   
       </target>
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to