diff --git a/src/main/org/apache/tools/ant/Task.java b/src/main/org/apache/tools/ant/Task.java index cdccdb070..9937a0716 100644 --- a/src/main/org/apache/tools/ant/Task.java +++ b/src/main/org/apache/tools/ant/Task.java @@ -188,6 +188,25 @@ public abstract class Task extends ProjectComponent { } + /** + * Log a message with the default (INFO) priority. + * + * @param the message to be logged. + */ + public void log(String msg) { + log(msg, Project.MSG_INFO); + } + + /** + * Log a mesage with the give priority. + * + * @param the message to be logged. + * @param msgLevel the message priority at which this message is to be logged. + */ + public void log(String msg, int msgLevel) { + project.log(this, msg, msgLevel); + } + /** * Perform this task */