ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs ImportTask.java
Date Mon, 03 Nov 2003 10:14:49 GMT
peterreilly    2003/11/03 02:14:49

  Modified:    src/main/org/apache/tools/ant/taskdefs ImportTask.java
  Log:
  Opps, last change broke relative import
  
  Revision  Changes    Path
  1.19      +3 -1      ant/src/main/org/apache/tools/ant/taskdefs/ImportTask.java
  
  Index: ImportTask.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/ImportTask.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- ImportTask.java	31 Oct 2003 15:59:45 -0000	1.18
  +++ ImportTask.java	3 Nov 2003 10:14:49 -0000	1.19
  @@ -154,7 +154,9 @@
   
           // Paths are relative to the build file they're imported from,
           // *not* the current directory (same as entity includes).
  -        File importedFile = FILE_UTILS.resolveFile(buildFile,  file);
  +
  +        File buildFileParent = new File(buildFile.getParent());
  +        File importedFile = FILE_UTILS.resolveFile(buildFileParent,  file);
   
           if (!importedFile.exists()) {
               String message =
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message