ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r563403 - /ant/core/trunk/src/tests/antunit/types/resources/files-test.xml
Date Tue, 07 Aug 2007 06:30:55 GMT
Author: jhm
Date: Mon Aug  6 23:30:55 2007
New Revision: 563403

URL: http://svn.apache.org/viewvc?view=rev&rev=563403
Log:
Bug 43048: Testcase. (Failed on Ant 1.7.0 but works for me on HEAD, so no other changes).

Added:
    ant/core/trunk/src/tests/antunit/types/resources/files-test.xml

Added: ant/core/trunk/src/tests/antunit/types/resources/files-test.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/types/resources/files-test.xml?view=auto&rev=563403
==============================================================================
--- ant/core/trunk/src/tests/antunit/types/resources/files-test.xml (added)
+++ ant/core/trunk/src/tests/antunit/types/resources/files-test.xml Mon Aug  6 23:30:55 2007
@@ -0,0 +1,36 @@
+<project name="files-test" default="antunit"
+         xmlns:au="antlib:org.apache.ant.antunit">
+
+  <target name="antunit">
+    <au:antunit>
+      <au:plainlistener />
+      <file file="${ant.file}" />
+    </au:antunit>
+  </target>
+  
+  <target name="setUp">
+    <property name="out" value="out"/>
+  </target>
+  
+  <target name="tearDown">
+    <delete dir="${out}"/>
+  </target>
+
+  <target name="testEmptyReference" description="Bug43048">
+    <files id="foo"/>
+    <mkdir dir="${out}"/>
+    <copy todir="${out}">
+      <!-- threw a java.lang.NullPointerException -->
+	  <files refid="foo"/>
+    </copy>
+  </target>
+
+  <target name="testEmptyFiles" description="Bug43048">
+    <mkdir dir="${out}"/>
+    <copy todir="${out}">
+      <files/>
+    </copy>
+  </target>
+
+
+</project>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message