Browse Source

added logging of build file/target in verbose mode; surprised it wasnt there already.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271517 13f79535-47bb-0310-9956-ffa450edef68
master
Steve Loughran 23 years ago
parent
commit
b500d4af04
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/main/org/apache/tools/ant/taskdefs/Ant.java

+ 4
- 0
src/main/org/apache/tools/ant/taskdefs/Ant.java View File

@@ -281,6 +281,10 @@ public class Ant extends Task {
File file = FileUtils.newFileUtils().resolveFile(dir, antFile);
antFile = file.getAbsolutePath();

log("calling target "+(target!=null?target:"[default]")
+ " in build file "+ antFile.toString(),
Project.MSG_VERBOSE);
newProject.setUserProperty( "ant.file" , antFile );
ProjectHelper.configureProject(newProject, new File(antFile));


Loading…
Cancel
Save