ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r523867 - /ant/core/trunk/src/tests/antunit/taskdefs/move-test.xml
Date Thu, 29 Mar 2007 22:56:37 GMT
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message