Browse Source

Be more specific logging imports.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@439042 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 19 years ago
parent
commit
1c8e55cc3a
1 changed files with 4 additions and 5 deletions
  1. +4
    -5
      src/main/org/apache/tools/ant/taskdefs/ImportTask.java

+ 4
- 5
src/main/org/apache/tools/ant/taskdefs/ImportTask.java View File

@@ -111,11 +111,7 @@ public class ImportTask extends Task {
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).
@@ -123,6 +119,9 @@ public class ImportTask extends Task {
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 =
"Cannot find " + file + " imported from "


Loading…
Cancel
Save