Browse Source

JDK 1.1 File parent determination is a bit lacking when the

path is a combined Windows/Unix path

PR:	16923


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274057 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 22 years ago
parent
commit
73b731154a
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      src/main/org/apache/tools/ant/Main.java

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

@@ -255,7 +255,6 @@ public class Main {
* or is a directory.
*/
protected Main(String[] args) throws BuildException {

String searchForThis = null;
PrintStream logTo = null;

@@ -300,7 +299,7 @@ public class Main {
} else if (arg.equals("-buildfile") || arg.equals("-file")
|| arg.equals("-f")) {
try {
buildFile = new File(args[i + 1]);
buildFile = new File(args[i + 1].replace('/', File.separatorChar));
i++;
} catch (ArrayIndexOutOfBoundsException aioobe) {
String msg = "You must specify a buildfile when " +


Loading…
Cancel
Save