java-checkstyle/java-checkstyle-5.1-ant-1.8.patch

34 lines
1.2 KiB
Diff
Raw Normal View History

--- checkstyle-5.1.orig/build.xml 2014-04-01 14:50:00.862599675 +0000
+++ checkstyle-5.1/build.xml 2014-04-01 15:39:30.080109023 +0000
@@ -425,7 +425,7 @@
<!-- To run the tests need Xalan in the classpath -->
<target name="run.tests"
- depends="compile.tests,-require.ant17,-require.xalan,compile.testinputs"
+ depends="compile.tests,-require.xalan,compile.testinputs"
description="Runs the tests for checkstyle">
<mkdir dir="${testreport.dir}"/>
@@ -682,21 +682,6 @@
</xmlvalidate>
</target>
- <!-- Targets to verify that ANT version if at least 1.7 -->
- <target name="-check.ant17">
- <echo>version is ${ant.version}</echo>
- <condition property="have.ant17">
- <or>
- <contains string="${ant.version}"
- substring="Apache Ant version 1.7"/>
- </or>
- </condition>
- </target>
-
- <target name="-require.ant17" depends="-check.ant17" unless="have.ant17">
- <fail message="Need at least version 1.7 of ANT - you have ${ant.version}"/>
- </target>
-
<target name="checkstyle.run" depends="compile.checkstyle"
description="Runs checkstyle.">
<taskdef name="checkstyle"