ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r409340 - /ant/core/trunk/src/etc/testcases/taskdefs/conditions/antversion.xml
Date Thu, 25 May 2006 09:10:26 GMT
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


Mime
View raw message