Costin, You should be using <zipfileset>.
Please check the commit for revision 1.29 You should be using <zipfileset> rather than a <fileset>. Conor > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Thursday, 2 August 2001 9:20 AM > To: [EMAIL PROTECTED] > Subject: cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs > Zip.java > > > 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); > } > > > > >
