Browse Source

constructor with passed-in ProjectComponent and default loglevel

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@536358 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 18 years ago
parent
commit
b4101f5424
1 changed files with 11 additions and 1 deletions
  1. +11
    -1
      src/main/org/apache/tools/ant/taskdefs/LogOutputStream.java

+ 11
- 1
src/main/org/apache/tools/ant/taskdefs/LogOutputStream.java View File

@@ -37,6 +37,16 @@ public class LogOutputStream extends LineOrientedOutputStream {
private ProjectComponent pc;
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.
*
@@ -55,7 +65,7 @@ public class LogOutputStream extends LineOrientedOutputStream {
* @since Ant 1.6.3
*/
public LogOutputStream(ProjectComponent pc, int level) {
this.pc = pc;
this(pc);
this.level = level;
}



Loading…
Cancel
Save