ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r792943 - /ant/core/trunk/src/tests/antunit/taskdefs/jar-test.xml
Date Fri, 10 Jul 2009 13:25:42 GMT
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>



Mime
View raw message