Browse Source

Reverse changes and reinstate fileset + prefixedfileset

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268348 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 24 years ago
parent
commit
8f2c9066b3
2 changed files with 7 additions and 8 deletions
  1. +0
    -8
      src/main/org/apache/tools/ant/taskdefs/Jar.java
  2. +7
    -0
      src/main/org/apache/tools/ant/taskdefs/Zip.java

+ 0
- 8
src/main/org/apache/tools/ant/taskdefs/Jar.java View File

@@ -80,14 +80,6 @@ public class Jar extends Zip {
super.setZipfile(jarFile);
}

/**
* Adds a set of files (nested fileset attribute).
*/
public void addPrefixedfileset(PrefixedFileSet set) {
log("Warning: Prefixfileset is a deprecated feature. The fileset subelement can be used in it's place", Project.MSG_WARN);
addFileset(set);
}
public void setManifest(File manifestFile) {
manifest = manifestFile;
if (!manifest.exists())


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

@@ -113,6 +113,13 @@ public class Zip extends MatchingTask {
filesets.addElement(set);
}

/**
* Adds a set of files (nested fileset attribute).
*/
public void addPrefixedfileset(PrefixedFileSet set) {
addFileset(set);
}

/**
* FileSet with an additional prefix attribute to specify the
* location we want to move the files to (inside the archive).


Loading…
Cancel
Save