costin      01/08/01 16:20:22

  Modified:    src/main/org/apache/tools/ant/taskdefs Zip.java
  Log:
  Small fix in Zip.java.
  
  In ant1.3 you can specify the prefix ( for war, zip, etc ), that doesn't seem
  to work anymore ( since <fileset> will create a simple filest, without the
  prefix attribute ).
  
  If we create a ZipFileSet instead of FileSet everything works again.
  
  Revision  Changes    Path
  1.46      +1 -1      
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Zip.java
  
  Index: Zip.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Zip.java,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- Zip.java  2001/08/01 12:56:23     1.45
  +++ Zip.java  2001/08/01 23:20:22     1.46
  @@ -140,7 +140,7 @@
       /**
        * Adds a set of files (nested fileset attribute).
        */
  -    public void addFileset(FileSet set) {
  +    public void addFileset(ZipFileSet set) {
           filesets.addElement(set);
       }
   
  
  
  

Reply via email to