Browse Source

test for Bugzilla 41948

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@523867 13f79535-47bb-0310-9956-ffa450edef68
master
Antoine Levy-Lambert 18 years ago
parent
commit
23de1130b0
1 changed files with 30 additions and 0 deletions
  1. +30
    -0
      src/tests/antunit/taskdefs/move-test.xml

+ 30
- 0
src/tests/antunit/taskdefs/move-test.xml View File

@@ -0,0 +1,30 @@
<project default="all" xmlns:au="antlib:org.apache.ant.antunit">
<target name="checkos">
<condition property="onwindows">
<os family="windows"/>
</condition>
</target>
<target name="test-move-windows" if="onwindows" depends="checkos">
<!-- this test is inspired by bugzilla 41948 -->
<touch file="${java.io.tmpdir}/abc"/>
<move file="${java.io.tmpdir}/abc" tofile="${java.io.tmpdir}/aBc"/>
<fileset dir="${java.io.tmpdir}" id="myfs">
<include name="aBc"/>
</fileset>
<pathconvert refid="myfs" property="myproperty" setonempty="false"/>
<au:assertPropertySet name="myproperty" message="abc was not renamed aBc"/>
</target>
<target name="tearDown">
<delete file="${java.io.tmpdir}/aBc"/>
</target>
<target name="all">
<au:antunit>
<fileset file="${ant.file}"/>
<au:plainlistener/>
</au:antunit>
</target>
</project>

Loading…
Cancel
Save