List Info

Thread: svn commit: r523867 - /ant/core/trunk/src/tests/antunit/taskdefs/move-test.xml




svn commit: r523867 - /ant/core/trunk/src/tests/antunit/taskde fs/move-test.xml
country flaguser name
United States
2007-03-29 17:56:37
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: htt
p://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/t
askdefs/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-unsubscribeant.apache.org
For additional commands, e-mail: dev-helpant.apache.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )