Browse Source

Bug 43048: Testcase. (Failed on Ant 1.7.0 but works for me on HEAD, so no other changes).

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@563403 13f79535-47bb-0310-9956-ffa450edef68
master
Jan Materne 18 years ago
parent
commit
9a4f590ec1
1 changed files with 36 additions and 0 deletions
  1. +36
    -0
      src/tests/antunit/types/resources/files-test.xml

+ 36
- 0
src/tests/antunit/types/resources/files-test.xml View File

@@ -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>

Loading…
Cancel
Save