blob: 9f90fb13f25aa3e17c49cb9ecfaade5a4b32212e [file] [log] [blame]
<project default="antunit" xmlns:au="antlib:org.apache.ant.antunit">
<import file="../antunit-base.xml" />
<target name="test-move-caseonly">
<!-- this test is inspired by bugzilla 41948 -->
<!-- Especially interesting if executed on case-insensitive file systems -->
<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>
</project>