xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vhenneb...@apache.org
Subject svn commit: r1576433 - /xmlgraphics/commons/branches/Temp_Checkstyle/build.xml
Date Tue, 11 Mar 2014 17:41:58 GMT
Author: vhennebert
Date: Tue Mar 11 17:41:58 2014
New Revision: 1576433

URL: http://svn.apache.org/r1576433
Log:
Enabled text formatter and set up zero warning policy

Modified:
    xmlgraphics/commons/branches/Temp_Checkstyle/build.xml

Modified: xmlgraphics/commons/branches/Temp_Checkstyle/build.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/branches/Temp_Checkstyle/build.xml?rev=1576433&r1=1576432&r2=1576433&view=diff
==============================================================================
--- xmlgraphics/commons/branches/Temp_Checkstyle/build.xml (original)
+++ xmlgraphics/commons/branches/Temp_Checkstyle/build.xml Tue Mar 11 17:41:58 2014
@@ -452,7 +452,6 @@ NOTE:
   <!-- Checkstyle                                                          -->
   <!-- =================================================================== -->
   <property name="checkstyle.location" value="${optional.lib.dir}/checkstyle-5.5-all.jar"
/>
-  <property name="checkstyle.noframes.xslt" value="${basedir}/checkstyle-noframes.xsl"
/>
   <property name="checkstyle.config" value="${basedir}/checkstyle-5.5.xml" />
   <path id="checkstyle-classpath">
     <path refid="libs-build-classpath"/>
@@ -463,20 +462,18 @@ NOTE:
       <available classname="com.puppycrawl.tools.checkstyle.CheckStyleTask">
         <classpath refid="checkstyle-classpath"/>
       </available>
-      <available file="${checkstyle.noframes.xslt}"/>
       <available file="${checkstyle.config}"/>
     </and>
   </condition>
   <target name="checkstyle-avail" unless="checkstyle.avail">
     <echo message="Checkstyle support NOT present. Please download it from http://checkstyle.sf.net/
and"/>
     <echo message="... please provide ${checkstyle.location}"/>
-    <echo message="... please provide ${checkstyle.noframes.xslt}"/>
     <echo message="... please provide ${checkstyle.config}"/>
   </target>
   <target name="checkstyle" depends="package, checkstyle-avail" if="checkstyle.avail"
description="Runs Checkstyle for a code quality report">
     <taskdef name="checkstyle" classname="com.puppycrawl.tools.checkstyle.CheckStyleTask"
classpathref="checkstyle-classpath"/>
     <mkdir dir="${build.dir}"/>
-    <checkstyle config="${checkstyle.config}" failonviolation="false">
+    <checkstyle config="${checkstyle.config}" failonviolation="true" maxWarnings="0">
       <classpath>
         <path refid="checkstyle-classpath"/>
         <pathelement location="${build.classes.dir}"/>
@@ -486,8 +483,8 @@ NOTE:
       <fileset dir="${src.dir}" includes="**/*.java"/>
       <fileset dir="${basedir}/test" includes="**/*.java"/>
       <formatter type="xml" toFile="${build.dir}/report_checkstyle.xml"/>
+      <formatter type="plain"/>
     </checkstyle>
-    <xslt in="${build.dir}/report_checkstyle.xml" out="${build.dir}/report_checkstyle.html"
style="${checkstyle.noframes.xslt}"/>
   </target>
 
   <!-- =================================================================== -->



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org


Mime
View raw message