You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by ke...@apache.org on 2006/05/25 11:10:26 UTC

svn commit: r409340 - /ant/core/trunk/src/etc/testcases/taskdefs/conditions/antversion.xml

Author: kevj
Date: Thu May 25 02:10:26 2006
New Revision: 409340

URL: http://svn.apache.org/viewvc?rev=409340&view=rev
Log:
test build file for antversion

Added:
    ant/core/trunk/src/etc/testcases/taskdefs/conditions/antversion.xml

Added: ant/core/trunk/src/etc/testcases/taskdefs/conditions/antversion.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/etc/testcases/taskdefs/conditions/antversion.xml?rev=409340&view=auto
==============================================================================
--- ant/core/trunk/src/etc/testcases/taskdefs/conditions/antversion.xml (added)
+++ ant/core/trunk/src/etc/testcases/taskdefs/conditions/antversion.xml Thu May 25 02:10:26 2006
@@ -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>
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org