You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by jk...@apache.org on 2006/02/02 21:43:10 UTC

svn commit: r374488 - in /ant/core/trunk: CONTRIBUTORS src/main/org/apache/tools/ant/Task.java

Author: jkf
Date: Thu Feb  2 12:43:05 2006
New Revision: 374488

URL: http://svn.apache.org/viewcvs?rev=374488&view=rev
Log:
Corrected fix in Task.java (first shortcut removed the task name from the logging entry.

Modified:
    ant/core/trunk/CONTRIBUTORS
    ant/core/trunk/src/main/org/apache/tools/ant/Task.java

Modified: ant/core/trunk/CONTRIBUTORS
URL: http://svn.apache.org/viewcvs/ant/core/trunk/CONTRIBUTORS?rev=374488&r1=374487&r2=374488&view=diff
==============================================================================
Binary files - no diff available.

Modified: ant/core/trunk/src/main/org/apache/tools/ant/Task.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/Task.java?rev=374488&r1=374487&r2=374488&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/Task.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/Task.java Thu Feb  2 12:43:05 2006
@@ -336,6 +336,22 @@
     }
 
     /**
+     * Logs a message with the given priority. This delegates
+     * the actual logging to the project.
+     *
+     * @param msg The message to be logged. Should not be <code>null</code>.
+     * @param msgLevel The message priority at which this message is to
+     *                 be logged.
+     */
+    public void log(String msg, int msgLevel) {
+        if (getProject() != null) {
+            getProject().log(this, msg, msgLevel);
+        } else {
+            super.log(msg, msgLevel);
+        }
+    }
+
+    /**
      * Performs this task if it's still valid, or gets a replacement
      * version and performs that otherwise.
      *



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org