Browse Source

fix if build file name has ../ or ./

PR:  26765
Reported by: Ian E. Gorman


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276213 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 21 years ago
parent
commit
8a5186ec79
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/helper/ProjectHelper2.java

+ 1
- 1
src/main/org/apache/tools/ant/helper/ProjectHelper2.java View File

@@ -154,7 +154,7 @@ public class ProjectHelper2 extends ProjectHelper {

if (source instanceof File) {
buildFile = (File) source;
buildFile = new File(buildFile.getAbsolutePath());
buildFile = fu.normalize(buildFile.getAbsolutePath());
context.setBuildFile(buildFile);
buildFileName = buildFile.toString();
// } else if (source instanceof InputStream ) {


Loading…
Cancel
Save