You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2009/07/10 15:25:42 UTC
svn commit: r792943 - /ant/core/trunk/src/tests/antunit/taskdefs/jar-test.xml
Author: bodewig
Date: Fri Jul 10 13:25:41 2009
New Revision: 792943
URL: http://svn.apache.org/viewvc?rev=792943&view=rev
Log:
add a passing testcase for PR 47470
Modified:
ant/core/trunk/src/tests/antunit/taskdefs/jar-test.xml
Modified: ant/core/trunk/src/tests/antunit/taskdefs/jar-test.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/taskdefs/jar-test.xml?rev=792943&r1=792942&r2=792943&view=diff
==============================================================================
--- ant/core/trunk/src/tests/antunit/taskdefs/jar-test.xml (original)
+++ ant/core/trunk/src/tests/antunit/taskdefs/jar-test.xml Fri Jul 10 13:25:41 2009
@@ -46,4 +46,18 @@
</au:assertTrue>
</target>
+ <target name="testResourcesOnly"
+ description="https://issues.apache.org/bugzilla/show_bug.cgi?id=47470">
+ <mkdir dir="${input}"/>
+ <mkdir dir="${output}"/>
+ <touch file="${input}/foo"/>
+ <touch file="${output}/bar"/>
+ <jar destfile="${output}/foo.jar">
+ <union>
+ <fileset dir="${input}"/>
+ <fileset dir="${output}" excludes="foo.jar"/>
+ </union>
+ </jar>
+ <au:assertLogDoesntContain text="skipping jar archive"/>
+ </target>
</project>