ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r738412 - /ant/core/trunk/src/tests/antunit/taskdefs/zip-test.xml
Date Wed, 28 Jan 2009 09:22:05 GMT
Author: bodewig
Date: Wed Jan 28 09:22:05 2009
New Revision: 738412

URL: http://svn.apache.org/viewvc?rev=738412&view=rev
Log:
turn Jesse's testcase in PR 45902 into an AntUnit test (failed before applying revision 738330
and passes after it)

Modified:
    ant/core/trunk/src/tests/antunit/taskdefs/zip-test.xml

Modified: ant/core/trunk/src/tests/antunit/taskdefs/zip-test.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/taskdefs/zip-test.xml?rev=738412&r1=738411&r2=738412&view=diff
==============================================================================
--- ant/core/trunk/src/tests/antunit/taskdefs/zip-test.xml (original)
+++ ant/core/trunk/src/tests/antunit/taskdefs/zip-test.xml Wed Jan 28 09:22:05 2009
@@ -60,4 +60,48 @@
     <unzip src="${output}/test.zip" dest="${output}/out"/>
     <au:assertFileExists file="${output}/out/WEB-INF/lib/ant.jar"/>
   </target>
+
+    <target name="testIssue45902"
+            description="https://issues.apache.org/bugzilla/show_bug.cgi?id=45902">
+      <mkdir dir="${input}/src/p"/>
+      <mkdir dir="${output}"/>
+      <touch file="${input}/src/p/X.java"/>
+      <touch file="${input}/src/p/x.properties"/>
+      <mkdir dir="${input}/build"/>
+      <copy todir="${input}/build">
+        <fileset dir="${input}/src" includes="**/*.java"/>
+      </copy>
+
+      <jar jarfile="${output}/jar.jar">
+        <fileset dir="${input}/build"/>
+        <fileset dir="${input}/src" excludes="**/*.java"/>
+      </jar>
+      <copy file="${output}/jar.jar" tofile="${output}/reference.jar"/>
+
+      <sleep seconds="1"/>
+      <touch file="${input}/src/p/y.properties"/>
+      <sleep seconds="1"/>
+      <delete file="${input}/src/p/y.properties"/>
+      <jar jarfile="${output}/jar.jar">
+        <fileset dir="${input}/build"/>
+        <fileset dir="${input}/src" excludes="**/*.java"/>
+      </jar>
+      <au:assertDestIsUptodate src="${output}/jar.jar"
+                               dest="${output}/reference.jar"/>
+
+      <sleep seconds="1"/>
+      <jar jarfile="${output}/jar.jar">
+        <fileset dir="${input}/build"/>
+        <fileset dir="${input}/src" excludes="**/*.java"/>
+      </jar>
+      <au:assertDestIsUptodate src="${output}/jar.jar"
+                               dest="${output}/reference.jar"/>
+
+      <jar jarfile="${output}/jar.jar">
+        <fileset dir="${input}/build"/>
+        <fileset dir="${input}/src" excludes="**/*.java"/>
+      </jar>
+      <au:assertDestIsUptodate src="${output}/jar.jar"
+                               dest="${output}/reference.jar"/>
+    </target>
 </project>



Mime
View raw message