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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]