Browse Source

test build file for antversion

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@409340 13f79535-47bb-0310-9956-ffa450edef68
master
Kevin Jackson 19 years ago
parent
commit
508bed9d44
1 changed files with 49 additions and 0 deletions
  1. +49
    -0
      src/etc/testcases/taskdefs/conditions/antversion.xml

+ 49
- 0
src/etc/testcases/taskdefs/conditions/antversion.xml View File

@@ -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>

Loading…
Cancel
Save