org.apache.tools.ant.taskdefs
public class TaskOutputStream extends OutputStream
Deprecated: since 1.2.x. Use LogOutputStream instead.
Redirects text written to a stream thru the standard ant logging mechanism. This class is useful for integrating with tools that write to System.out and System.err. For example, the following will cause all text written to System.out to be logged with "info" priority:System.setOut(new PrintStream(new TaskOutputStream(project, Project.MSG_INFO)));
As of Ant 1.2, this class is considered to be dead code by the Ant developers and is unmaintained. Don't use it.
Method Summary | |
---|---|
void | write(int c)
Write a character to the output stream. |
Parameters: c the character to write
Throws: IOException on error