Browse Source

prefix attribute of <zipfileset> would not generate directory entries

for the prefix itself.

PR: 18403


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274320 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 22 years ago
parent
commit
5d14cd4e49
2 changed files with 13 additions and 4 deletions
  1. +8
    -0
      WHATSNEW
  2. +5
    -4
      src/main/org/apache/tools/ant/taskdefs/Zip.java

+ 8
- 0
WHATSNEW View File

@@ -211,6 +211,14 @@ Fixed bugs:
* Ant will no longer implicitly add Sun's rt.jar in <javac> when you
use jvc and don't specify a bootclasspath. Bugzilla Report 18055.

* The prefix attribute of <zipfileset> would not generate directory
entries for the prefix itself. Bugzilla Report 18403.

Other Changes:
--------------
* Added ability to specify manifest encoding for the <jar> and
<manifest> tasks

Changes from Ant 1.5.1 to Ant 1.5.2
=============================================



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

@@ -558,10 +558,11 @@ public class Zip extends MatchingTask {
+ " file.");
}

if (prefix.length() > 0
&& !prefix.endsWith("/")
&& !prefix.endsWith("\\")) {
prefix += "/";
if (prefix.length() > 0) {
if (!prefix.endsWith("/") && !prefix.endsWith("\\")) {
prefix += "/";
}
addParentDirs(null, prefix, zOut, "", dirMode);
}

ZipFile zf = null;


Loading…
Cancel
Save