Browse Source

make loadfile/resource less noisy for empty resources when asked to be quiet. PR 52107.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1190219 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 13 years ago
parent
commit
ea4b41e1d9
2 changed files with 8 additions and 1 deletions
  1. +6
    -0
      WHATSNEW
  2. +2
    -1
      src/main/org/apache/tools/ant/taskdefs/LoadResource.java

+ 6
- 0
WHATSNEW View File

@@ -130,6 +130,12 @@ Other changes:
deleting empty directories on NFS shares.
Bugzilla Report 45807.

* <loadfile> and <loadresource> used to log at level INFO to signal a
property hasn't been set when the resource was empty even if the
quiet attribute was set to true. They will now use VERBOSE
instead.
Bugzilla Report 52107.

Changes from Ant 1.8.1 TO Ant 1.8.2
===================================



+ 2
- 1
src/main/org/apache/tools/ant/taskdefs/LoadResource.java View File

@@ -179,7 +179,8 @@ public class LoadResource extends Task {

text = crh.readFully(instream);
} else {
log("Do not set property " + property + " as its length is 0.");
log("Do not set property " + property + " as its length is 0.",
quiet ? Project.MSG_VERBOSE : Project.MSG_INFO);
}

if (text != null) {


Loading…
Cancel
Save