Browse Source

Log warnings as warnings.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277447 13f79535-47bb-0310-9956-ffa450edef68
master
Jesse N. Glick 20 years ago
parent
commit
48c9105342
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/main/org/apache/tools/ant/taskdefs/Available.java

+ 4
- 2
src/main/org/apache/tools/ant/taskdefs/Available.java View File

@@ -165,7 +165,8 @@ public class Available extends Task implements Condition {
*/ */
public void setType(String type) { public void setType(String type) {
log("DEPRECATED - The setType(String) method has been deprecated." log("DEPRECATED - The setType(String) method has been deprecated."
+ " Use setType(Available.FileDir) instead.");
+ " Use setType(Available.FileDir) instead.",
Project.MSG_WARN);
this.type = new FileDir(); this.type = new FileDir();
this.type.setValue(type); this.type.setValue(type);
} }
@@ -211,7 +212,8 @@ public class Available extends Task implements Condition {
+ " property." + " property."
+ StringUtils.LINE_SEP + StringUtils.LINE_SEP
+ " Build file should not reuse the same property" + " Build file should not reuse the same property"
+ " name for different values.");
+ " name for different values.",
Project.MSG_WARN);
} }
// NB: this makes use of Project#setProperty rather than Project#setNewProperty // NB: this makes use of Project#setProperty rather than Project#setNewProperty
// due to backwards compatiblity reasons // due to backwards compatiblity reasons


Loading…
Cancel
Save