ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r812866 - /ant/core/trunk/src/tests/antunit/taskdefs/property-test.xml
Date Wed, 09 Sep 2009 10:01:02 GMT
Author: jhm
Date: Wed Sep  9 10:01:02 2009
New Revision: 812866

URL: http://svn.apache.org/viewvc?rev=812866&view=rev
Log:
testcase for <property location>

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

Modified: ant/core/trunk/src/tests/antunit/taskdefs/property-test.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/taskdefs/property-test.xml?rev=812866&r1=812865&r2=812866&view=diff
==============================================================================
--- ant/core/trunk/src/tests/antunit/taskdefs/property-test.xml (original)
+++ ant/core/trunk/src/tests/antunit/taskdefs/property-test.xml Wed Sep  9 10:01:02 2009
@@ -37,4 +37,14 @@
       </property>
     </au:expectfailure>
   </target>
+  
+  <!-- Ensure we have platform dependent path separator -->
+  <property name="base" location="${basedir}"/>
+  <!-- an existing file as anchor for calculating paths -->
+  <property name="testfile" value="condition${file.separator}antversion-test.xml"/>
+
+  <target name="testLocation">
+    <property name="foo" location="${testfile}"/>
+    <au:assertPropertyEquals name="foo" value="${base}${file.separator}${testfile}"/>
+  </target>
 </project>



Mime
View raw message