From 48c91053422cb1fac07ec0a0c0ae8d60b769f306 Mon Sep 17 00:00:00 2001 From: "Jesse N. Glick" Date: Tue, 25 Jan 2005 02:29:43 +0000 Subject: [PATCH] Log warnings as warnings. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277447 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/Available.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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