Browse Source

Make sure "ant -find" will return a "normal" filename (without /./)

for the build file.

Reported by:            Costin Manolache <cmanolache@yahoo.com>
Fix suggested by:	Jesse Glick <Jesse.Glick@netbeans.com>

I still think we should fix Project.resolveFile to handle ../ and ./
sequences in rootDir as well.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269363 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 24 years ago
parent
commit
a44e2ea1d7
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/main/org/apache/tools/ant/Main.java

+ 2
- 1
src/main/org/apache/tools/ant/Main.java View File

@@ -297,7 +297,8 @@ public class Main {
if (buildFile == null) { if (buildFile == null) {
// but -find then search for it // but -find then search for it
if (searchForThis != null) { if (searchForThis != null) {
buildFile = findBuildFile(".", searchForThis);
buildFile = findBuildFile(System.getProperty("user.dir"),
searchForThis);
} else { } else {
buildFile = new File(DEFAULT_BUILD_FILENAME); buildFile = new File(DEFAULT_BUILD_FILENAME);
} }


Loading…
Cancel
Save