Browse Source

PR:35824

Adding removed public methods


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278470 13f79535-47bb-0310-9956-ffa450edef68
master
Jacobus Martinus Kruithof 20 years ago
parent
commit
0472359545
2 changed files with 50 additions and 2 deletions
  1. +2
    -0
      WHATSNEW
  2. +48
    -2
      src/main/org/apache/tools/ant/types/ZipFileSet.java

+ 2
- 0
WHATSNEW View File

@@ -59,6 +59,8 @@ Changes that could break older environments:


Fixed bugs: Fixed bugs:
----------- -----------
* Backward incompatible change in ZipFileSet, Bugzilla Report 35824.

* Wrong replacement of file separator chars prevens junitbatchtest * Wrong replacement of file separator chars prevens junitbatchtest
from running correctly on files from a zipfileset. Bugzilla Report 35499 from running correctly on files from a zipfileset. Bugzilla Report 35499




+ 48
- 2
src/main/org/apache/tools/ant/types/ZipFileSet.java View File

@@ -130,6 +130,7 @@ public class ZipFileSet extends FileSet {
* to have a reference to a ZipFileSet, only to a FileSet. * to have a reference to a ZipFileSet, only to a FileSet.
* @param p the project to use * @param p the project to use
* @return the source file * @return the source file
* @since Ant 1.6
*/ */
public File getSrc(Project p) { public File getSrc(Project p) {
if (isReference()) { if (isReference()) {
@@ -138,6 +139,16 @@ public class ZipFileSet extends FileSet {
return srcFile; return srcFile;
} }


/**
* Get the zip file from which entries will be extracted.
* References are not followed, since it is not possible
* to have a reference to a ZipFileSet, only to a FileSet.
* @deprecated
*/
public File getSrc() {
return srcFile;
}
/** /**
* Prepend this prefix to the path for each zip entry. * Prepend this prefix to the path for each zip entry.
* Prevents both prefix and fullpath from being specified * Prevents both prefix and fullpath from being specified
@@ -155,6 +166,7 @@ public class ZipFileSet extends FileSet {
* Return the prefix prepended to entries in the zip file. * Return the prefix prepended to entries in the zip file.
* @param p the project to use * @param p the project to use
* @return the prefix * @return the prefix
* @since Ant 1.6
*/ */
public String getPrefix(Project p) { public String getPrefix(Project p) {
if (isReference()) { if (isReference()) {
@@ -163,6 +175,14 @@ public class ZipFileSet extends FileSet {
return prefix; return prefix;
} }


/**
* Return the prefix prepended to entries in the zip file.
* @deprecated
*/
public String getPrefix() {
return prefix;
}
/** /**
* Set the full pathname of the single entry in this fileset. * Set the full pathname of the single entry in this fileset.
* Prevents both prefix and fullpath from being specified * Prevents both prefix and fullpath from being specified
@@ -180,6 +200,7 @@ public class ZipFileSet extends FileSet {
* Return the full pathname of the single entry in this fileset. * Return the full pathname of the single entry in this fileset.
* @param p the project to use * @param p the project to use
* @return the full path * @return the full path
* @since Ant 1.6
*/ */
public String getFullpath(Project p) { public String getFullpath(Project p) {
if (isReference()) { if (isReference()) {
@@ -187,6 +208,14 @@ public class ZipFileSet extends FileSet {
} }
return fullpath; return fullpath;
} }
/**
* Return the full pathname of the single entry in this fileset.
* @deprecated
*/
public String getFullpath() {
return fullpath;
}


/** /**
* Set the encoding used for this ZipFileSet. * Set the encoding used for this ZipFileSet.
@@ -290,7 +319,7 @@ public class ZipFileSet extends FileSet {
* Get the mode of the zip fileset * Get the mode of the zip fileset
* @param p the project to use * @param p the project to use
* @return the mode * @return the mode
* @since Ant 1.5.2
* @since Ant 1.6
*/ */
public int getFileMode(Project p) { public int getFileMode(Project p) {
if (isReference()) { if (isReference()) {
@@ -298,6 +327,15 @@ public class ZipFileSet extends FileSet {
} }
return fileMode; return fileMode;
} }
/**
* @since Ant 1.5.2
* @deprecated
*/
public int getFileMode() {
return fileMode;
}



/** /**
* Whether the user has specified the mode explicitly. * Whether the user has specified the mode explicitly.
@@ -329,7 +367,7 @@ public class ZipFileSet extends FileSet {
* Get the dir mode of the zip fileset * Get the dir mode of the zip fileset
* @param p the project to use * @param p the project to use
* @return the mode * @return the mode
* @since Ant 1.5.2
* @since Ant 1.6
*/ */
public int getDirMode(Project p) { public int getDirMode(Project p) {
if (isReference()) { if (isReference()) {
@@ -337,6 +375,14 @@ public class ZipFileSet extends FileSet {
} }
return dirMode; return dirMode;
} }
/**
* @since Ant 1.5.2
* @deprecated
*/
public int getDirMode() {
return dirMode;
}


/** /**
* Whether the user has specified the mode explicitly. * Whether the user has specified the mode explicitly.


Loading…
Cancel
Save