You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by mb...@apache.org on 2007/05/09 00:30:21 UTC
svn commit: r536358 -
/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/LogOutputStream.java
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