ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r326639 - in /ant/core/trunk/src: etc/testcases/taskdefs/unzip.xml testcases/org/apache/tools/ant/taskdefs/UnzipTest.java
Date Wed, 19 Oct 2005 18:39:33 GMT
Author: bodewig
Date: Wed Oct 19 11:39:27 2005
New Revision: 326639

URL: http://svn.apache.org/viewcvs?rev=326639&view=rev
Log:
more docs and tests

Modified:
    ant/core/trunk/src/etc/testcases/taskdefs/unzip.xml
    ant/core/trunk/src/testcases/org/apache/tools/ant/taskdefs/UnzipTest.java

Modified: ant/core/trunk/src/etc/testcases/taskdefs/unzip.xml
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/etc/testcases/taskdefs/unzip.xml?rev=326639&r1=326638&r2=326639&view=diff
==============================================================================
--- ant/core/trunk/src/etc/testcases/taskdefs/unzip.xml (original)
+++ ant/core/trunk/src/etc/testcases/taskdefs/unzip.xml Wed Oct 19 11:39:27 2005
@@ -134,4 +134,14 @@
       </restrict>
     </unzip>
   </target>
+
+  <target name="testDocumentationClaimsOnCopy" depends="prepareTestZip">
+    <copy todir="unziptestout" preservelastmodified="true"> 
+      <zipfileset src="unziptest.zip">
+        <patternset>
+          <include name="2/"/>
+        </patternset>
+      </zipfileset>
+    </copy>
+  </target>
 </project>

Modified: ant/core/trunk/src/testcases/org/apache/tools/ant/taskdefs/UnzipTest.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/testcases/org/apache/tools/ant/taskdefs/UnzipTest.java?rev=326639&r1=326638&r2=326639&view=diff
==============================================================================
--- ant/core/trunk/src/testcases/org/apache/tools/ant/taskdefs/UnzipTest.java (original)
+++ ant/core/trunk/src/testcases/org/apache/tools/ant/taskdefs/UnzipTest.java Wed Oct 19 11:39:27
2005
@@ -178,4 +178,10 @@
         assertFileExists("junit.jar has been extracted",
                          "unziptestout/junit/framework/Assert.class");
     }
+
+    public void testDocumentationClaimsOnCopy() {
+        executeTarget("testDocumentationClaimsOnCopy");
+        assertFileMissing("1/foo is excluded", "unziptestout/1/foo");
+        assertFileExists("2/bar is not excluded", "unziptestout/2/bar");
+    }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message