Browse Source

testcase for <property location>

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@812866 13f79535-47bb-0310-9956-ffa450edef68
master
Jan Materne 15 years ago
parent
commit
9c8f401ba1
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      src/tests/antunit/taskdefs/property-test.xml

+ 10
- 0
src/tests/antunit/taskdefs/property-test.xml View File

@@ -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>

Loading…
Cancel
Save