|
|
|
@@ -0,0 +1,49 @@ |
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<project name="testantversion" default="testatleast">
|
|
|
|
|
|
|
|
<target name="testatleast">
|
|
|
|
<fail>
|
|
|
|
<condition>
|
|
|
|
<not>
|
|
|
|
<antversion atleast="1.7" />
|
|
|
|
</not>
|
|
|
|
</condition>
|
|
|
|
Should be at least 1.7
|
|
|
|
</fail>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="testexactly">
|
|
|
|
<fail>
|
|
|
|
<condition>
|
|
|
|
<not>
|
|
|
|
<antversion exactly="1.7" />
|
|
|
|
</not>
|
|
|
|
</condition>
|
|
|
|
Should be exactly 1.7
|
|
|
|
</fail>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="testatleastfail">
|
|
|
|
<property name="version" value="1.8" />
|
|
|
|
<fail>
|
|
|
|
<condition>
|
|
|
|
<not>
|
|
|
|
<antversion atleast="1.9" />
|
|
|
|
</not>
|
|
|
|
</condition>
|
|
|
|
Should be at least 1.9
|
|
|
|
</fail>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="testexactlyfail">
|
|
|
|
<property name="version" value="1.8" />
|
|
|
|
<fail>
|
|
|
|
<condition>
|
|
|
|
<not>
|
|
|
|
<antversion exactly="1.9" />
|
|
|
|
</not>
|
|
|
|
</condition>
|
|
|
|
Should be exactly 1.9
|
|
|
|
</fail>
|
|
|
|
</target>
|
|
|
|
</project> |