ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: ant/src/testcases/org/apache/tools/ant/taskdefs UnzipTest.java
Date Mon, 23 Jun 2003 14:47:02 GMT
bodewig     2003/06/23 07:47:02

  Modified:    src/etc/testcases/taskdefs unzip.xml
               src/testcases/org/apache/tools/ant/taskdefs UnzipTest.java
  Log:
  Demonstrate Bugzilla Report 20969
  
  Revision  Changes    Path
  1.6       +10 -0     ant/src/etc/testcases/taskdefs/unzip.xml
  
  Index: unzip.xml
  ===================================================================
  RCS file: /home/cvs/ant/src/etc/testcases/taskdefs/unzip.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- unzip.xml	24 Apr 2003 13:02:56 -0000	1.5
  +++ unzip.xml	23 Jun 2003 14:47:02 -0000	1.6
  @@ -68,4 +68,14 @@
       <mkdir dir="unziptestout"/>
       <unzip dest="unziptestout" src="zip/test.exe"/>
     </target>
  +
  +  <!-- Bugzilla Report 20969 -->
  +  <target name="testPatternSetSlashOnly" depends="prepareTestZip">
  +    <unzip dest="unziptestout" src="unziptest.zip">
  +      <patternset>
  +        <include name="2/"/>
  +      </patternset>
  +    </unzip>
  +  </target>
  +
   </project>
  
  
  
  1.10      +12 -0     ant/src/testcases/org/apache/tools/ant/taskdefs/UnzipTest.java
  
  Index: UnzipTest.java
  ===================================================================
  RCS file: /home/cvs/ant/src/testcases/org/apache/tools/ant/taskdefs/UnzipTest.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- UnzipTest.java	24 Apr 2003 13:02:57 -0000	1.9
  +++ UnzipTest.java	23 Jun 2003 14:47:02 -0000	1.10
  @@ -143,4 +143,16 @@
                               + "probably a self-extracting archive");
       }
   
  +
  +    /*
  +     * PR 20969
  +     */
  +    public void testPatternSetSlashOnly() {
  +        executeTarget("testPatternSetSlashOnly");
  +        assertTrue("1/foo is not included",
  +                   !getProject().resolveFile("unziptestout/1/foo").exists());
  +        assertTrue("2/bar is included",
  +                   getProject().resolveFile("unziptestout/2/bar").exists());
  +    }
  +
   }
  
  
  

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


Mime
View raw message