peterreilly    2004/03/10 01:24:02

  Modified:    src/main/org/apache/tools/ant/helper ProjectHelper2.java
  Log:
  fix if build file name has ../ or ./
  PR:  26765
  Reported by: Ian E. Gorman
  
  Revision  Changes    Path
  1.44      +1 -1      
ant/src/main/org/apache/tools/ant/helper/ProjectHelper2.java
  
  Index: ProjectHelper2.java
  ===================================================================
  RCS file: 
/home/cvs/ant/src/main/org/apache/tools/ant/helper/ProjectHelper2.java,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -r1.43 -r1.44
  --- ProjectHelper2.java       9 Mar 2004 16:48:03 -0000       1.43
  +++ ProjectHelper2.java       10 Mar 2004 09:24:02 -0000      1.44
  @@ -154,7 +154,7 @@
   
           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 ) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to