You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by jh...@apache.org on 2009/09/09 12:01:02 UTC
svn commit: r812866 -
/ant/core/trunk/src/tests/antunit/taskdefs/property-test.xml
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>