Browse Source

get UpToDate task to log at verbose level when the target file does not exist

PR: 20848
Obtained from: Eli Tucker


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274674 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 22 years ago
parent
commit
5ba6ab78ce
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/main/org/apache/tools/ant/taskdefs/UpToDate.java

+ 3
- 0
src/main/org/apache/tools/ant/taskdefs/UpToDate.java View File

@@ -77,6 +77,7 @@ import org.apache.tools.ant.util.SourceFileScanner;
* @author Hiroaki Nakamura * @author Hiroaki Nakamura
* <a href="mailto:hnakamur@mc.neweb.ne.jp">hnakamur@mc.neweb.ne.jp</a> * <a href="mailto:hnakamur@mc.neweb.ne.jp">hnakamur@mc.neweb.ne.jp</a>
* @author Stefan Bodewig * @author Stefan Bodewig
* @author <a href="http://nerdmonkey.com">Eli Tucker</a>
* *
* @since Ant 1.2 * @since Ant 1.2
* *
@@ -182,6 +183,8 @@ public class UpToDate extends Task implements Condition {


// if the target file is not there, then it can't be up-to-date // if the target file is not there, then it can't be up-to-date
if (_targetFile != null && !_targetFile.exists()) { if (_targetFile != null && !_targetFile.exists()) {
log("The targetfile \"" + _targetFile.getAbsolutePath()
+ "\" does not exist.", Project.MSG_VERBOSE);
return false; return false;
} }




Loading…
Cancel
Save