ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant Main.java
Date Thu, 19 Jul 2001 06:38:01 GMT
bodewig     01/07/18 23:38:01

  Modified:    src/main/org/apache/tools/ant Main.java
  Log:
  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.
  
  Revision  Changes    Path
  1.38      +2 -1      jakarta-ant/src/main/org/apache/tools/ant/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/Main.java,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- Main.java	2001/07/17 12:12:39	1.37
  +++ Main.java	2001/07/19 06:38:01	1.38
  @@ -297,7 +297,8 @@
           if (buildFile == null) {
               // but -find then search for it
               if (searchForThis != null) {
  -                buildFile = findBuildFile(".", searchForThis);
  +                buildFile = findBuildFile(System.getProperty("user.dir"), 
  +                                          searchForThis);
               } else {
                   buildFile = new File(DEFAULT_BUILD_FILENAME);
               }
  
  
  

Mime
View raw message