ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant Main.java
Date Wed, 12 Feb 2003 05:04:31 GMT
conor       2003/02/11 21:04:31

  Modified:    src/main/org/apache/tools/ant Main.java
  Log:
  JDK 1.1 File parent determination is a bit lacking when the
  path is a combined Windows/Unix path
  
  PR:	16923
  
  Revision  Changes    Path
  1.80      +1 -2      ant/src/main/org/apache/tools/ant/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/Main.java,v
  retrieving revision 1.79
  retrieving revision 1.80
  diff -u -w -u -r1.79 -r1.80
  --- Main.java	10 Feb 2003 14:13:30 -0000	1.79
  +++ Main.java	12 Feb 2003 05:04:31 -0000	1.80
  @@ -255,7 +255,6 @@
        *                           or is a directory.
        */
       protected Main(String[] args) throws BuildException {
  -
           String searchForThis = null;
           PrintStream logTo = null;
   
  @@ -300,7 +299,7 @@
               } 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 " +
  
  
  

Mime
View raw message