Browse Source

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.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269436 13f79535-47bb-0310-9956-ffa450edef68
master
Costin Manolache 24 years ago
parent
commit
6e33aa3d8c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/Zip.java

+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/Zip.java View File

@@ -140,7 +140,7 @@ public class Zip extends MatchingTask {
/** /**
* Adds a set of files (nested fileset attribute). * Adds a set of files (nested fileset attribute).
*/ */
public void addFileset(FileSet set) {
public void addFileset(ZipFileSet set) {
filesets.addElement(set); filesets.addElement(set);
} }




Loading…
Cancel
Save