aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Hennebert <vhennebert@apache.org>2013-12-17 17:11:56 +0000
committerVincent Hennebert <vhennebert@apache.org>2013-12-17 17:11:56 +0000
commit9c45b11284334a1edee9093b412f59b84d1f36dd (patch)
tree8db6f47bc4b02c2537c66db02eec329dbc584934
parent126e31e71937288afd0ee484f6b56d4936989ea7 (diff)
downloadxmlgraphics-fop-9c45b11284334a1edee9093b412f59b84d1f36dd.tar.gz
xmlgraphics-fop-9c45b11284334a1edee9093b412f59b84d1f36dd.zip
Have Gump run Checkstyle on the source code
Removed HTML output for easier integration with Gump git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1551634 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--build.xml7
1 files changed, 1 insertions, 6 deletions
diff --git a/build.xml b/build.xml
index 11e99ca15..af7bc2fa8 100644
--- a/build.xml
+++ b/build.xml
@@ -1042,10 +1042,8 @@ NOTE:
<!-- Checkstyle -->
<!-- =================================================================== -->
<property name="checkstyle.location" value="${lib-tools}/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"/>
<pathelement location="${checkstyle.location}"/>
</path>
<condition property="checkstyle.avail">
@@ -1053,14 +1051,12 @@ 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">
@@ -1077,7 +1073,6 @@ NOTE:
<fileset dir="${test.dir}" includes="**/*.java"/>
<formatter type="xml" toFile="${build.dir}/report_checkstyle.xml"/>
</checkstyle>
- <xslt in="${build.dir}/report_checkstyle.xml" out="${build.dir}/report_checkstyle.html" style="${checkstyle.noframes.xslt}"/>
</target>
<!-- =================================================================== -->
<!-- PMD -->
@@ -1508,7 +1503,7 @@ NOTE:
<!-- Special target for Gump -->
<!-- =================================================================== -->
<target name="gump" depends="package,transcoder-pkg"/>
- <target name="gump-test" depends="junit-all">
+ <target name="gump-test" depends="junit-all,checkstyle">
<fail>
<condition>
<or>