Author: antoine Date: Thu Mar 29 15:56:36 2007 New Revision: 523867 URL: http://svn.apache.org/viewvc?view=rev&rev=523867 Log: test for Bugzilla 41948
Added: ant/core/trunk/src/tests/antunit/taskdefs/move-test.xml Added: ant/core/trunk/src/tests/antunit/taskdefs/move-test.xml URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/taskdefs/move-test.xml?view=auto&rev=523867 ============================================================================== --- ant/core/trunk/src/tests/antunit/taskdefs/move-test.xml (added) +++ ant/core/trunk/src/tests/antunit/taskdefs/move-test.xml Thu Mar 29 15:56:36 2007 @@ -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> \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]