Browse Source

use absolute path instread of canonical path in subant

PR: 30438


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277091 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 20 years ago
parent
commit
5766a65012
2 changed files with 4 additions and 7 deletions
  1. +3
    -0
      WHATSNEW
  2. +1
    -7
      src/main/org/apache/tools/ant/taskdefs/SubAnt.java

+ 3
- 0
WHATSNEW View File

@@ -103,6 +103,9 @@ Changes from Ant 1.6.2 to current Ant 1.6 CVS version
Changes that could break older environments:
--------------------------------------------

* The subant task used the canonical version of a file path. This
has been changed to use the absolute path. Bugzilla 30438.

Other changes:
--------------



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

@@ -253,13 +253,7 @@ public class SubAnt
}

ant = createAntTask(directory);
String antfilename = null;
try {
antfilename = file.getCanonicalPath();
} catch (IOException e) {
throw new BuildException(e);
}

String antfilename = file.getAbsolutePath()
ant.setAntfile(antfilename);
try {
ant.execute();


Loading…
Cancel
Save