Clean up how the ant version is detected. Thanks to Martin von Gagern

for patch #3023250.
This commit is contained in:
Oliver Burn 2010-07-02 02:41:34 +00:00
parent 3cd6646941
commit 8c0c66dd8e
1 changed files with 1 additions and 6 deletions

View File

@ -688,12 +688,7 @@ For users of JDK 1.5 at least version 1.6.2 of Ant is required.
<!-- 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>
<antversion atleast="1.7" property="have.ant17"/>
</target>
<target name="-require.ant17" depends="-check.ant17" unless="have.ant17">