Browse Source

Restore task logging and events

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269469 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 24 years ago
parent
commit
446c76d833
1 changed files with 19 additions and 0 deletions
  1. +19
    -0
      src/main/org/apache/tools/ant/Task.java

+ 19
- 0
src/main/org/apache/tools/ant/Task.java View File

@@ -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
*/


Loading…
Cancel
Save