ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r531485 - /ant/core/trunk/src/tests/antunit/taskdefs/condition/antversion-test.xml
Date Mon, 23 Apr 2007 14:43:27 GMT
Author: stevel
Date: Mon Apr 23 07:43:25 2007
New Revision: 531485

URL: http://svn.apache.org/viewvc?view=rev&rev=531485
Log:
Fix the version logic to work without having hard coded ant versions in there.

Modified:
    ant/core/trunk/src/tests/antunit/taskdefs/condition/antversion-test.xml

Modified: ant/core/trunk/src/tests/antunit/taskdefs/condition/antversion-test.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/taskdefs/condition/antversion-test.xml?view=diff&rev=531485&r1=531484&r2=531485
==============================================================================
--- ant/core/trunk/src/tests/antunit/taskdefs/condition/antversion-test.xml (original)
+++ ant/core/trunk/src/tests/antunit/taskdefs/condition/antversion-test.xml Mon Apr 23 07:43:25
2007
@@ -2,15 +2,16 @@
 <project name="antversion-test" default="all" basedir="." xmlns:au="antlib:org.apache.ant.antunit">
 
   <target name="test-atleast">
-    <au:assertTrue>
+    <au:assertTrue message="Expected antversion of ${ant.version} to be at least 1.7.0">
         <!-- AntVersion was introduced like AntUnit in 1.7 - so this must be true -->
     	<antversion atleast="1.7.0"/>
     </au:assertTrue>	
   </target>
 
   <target name="test-exactly">
-    <au:assertTrue>
-    	<antversion exactly="1.7.1"/>			
+    <antversion property="ant.actual.version"/>
+    <au:assertTrue message="Expected antversion of ${ant.actual.version}">
+    	<antversion exactly="${ant.actual.version}"/>
     </au:assertTrue>	
   </target>
 



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


Mime
View raw message