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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to