ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r536358 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/LogOutputStream.java
Date Tue, 08 May 2007 22:30:21 GMT
Author: mbenson
Date: Tue May  8 15:30:20 2007
New Revision: 536358

URL: http://svn.apache.org/viewvc?view=rev&rev=536358
Log:
constructor with passed-in ProjectComponent and default loglevel

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/LogOutputStream.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/LogOutputStream.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/LogOutputStream.java?view=diff&rev=536358&r1=536357&r2=536358
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/LogOutputStream.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/LogOutputStream.java Tue May  8
15:30:20 2007
@@ -38,6 +38,16 @@
     private int level = Project.MSG_INFO;
 
     /**
+     * Create a new LogOutputStream for the specified ProjectComponent.
+     *
+     * @param pc the project component for whom to log
+     * @since Ant 1.7.1
+     */
+    public LogOutputStream(ProjectComponent pc) {
+        this.pc = pc;
+    }
+
+    /**
      * Creates a new instance of this class.
      *
      * @param task the task for whom to log
@@ -55,7 +65,7 @@
      * @since Ant 1.6.3
      */
     public LogOutputStream(ProjectComponent pc, int level) {
-        this.pc = pc;
+        this(pc);
         this.level = level;
     }
 



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


Mime
View raw message