ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r439042 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ImportTask.java
Date Thu, 31 Aug 2006 20:40:27 GMT
Author: mbenson
Date: Thu Aug 31 13:40:26 2006
New Revision: 439042

URL: http://svn.apache.org/viewvc?rev=439042&view=rev
Log:
Be more specific logging imports.

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ImportTask.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ImportTask.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ImportTask.java?rev=439042&r1=439041&r2=439042&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ImportTask.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ImportTask.java Thu Aug 31 13:40:26
2006
@@ -111,17 +111,16 @@
             throw new BuildException("Unable to get location of import task");
         }
 
-        File buildFile = new File(getLocation().getFileName());
-        buildFile = new File(buildFile.getAbsolutePath());
-
-        getProject().log("Importing file " + file + " from "
-                         + buildFile.getAbsolutePath(), Project.MSG_VERBOSE);
+        File buildFile = new File(getLocation().getFileName()).getAbsoluteFile();
 
         // Paths are relative to the build file they're imported from,
         // *not* the current directory (same as entity includes).
 
         File buildFileParent = new File(buildFile.getParent());
         File importedFile = FILE_UTILS.resolveFile(buildFileParent, file);
+
+        getProject().log("Importing file " + importedFile + " from "
+                         + buildFile.getAbsolutePath(), Project.MSG_VERBOSE);
 
         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