diff --git a/src/main/org/apache/tools/ant/taskdefs/Available.java b/src/main/org/apache/tools/ant/taskdefs/Available.java index 65808a159..7563750c0 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Available.java +++ b/src/main/org/apache/tools/ant/taskdefs/Available.java @@ -165,7 +165,8 @@ public class Available extends Task implements Condition { */ public void setType(String type) { 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.setValue(type); } @@ -211,7 +212,8 @@ public class Available extends Task implements Condition { + " property." + StringUtils.LINE_SEP + " 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 // due to backwards compatiblity reasons