org.apache.tools.ant.taskdefs
public class JikesOutputParser extends Object implements ExecuteStreamHandler
Deprecated: since 1.2. Use Jikes' exit value to detect compilation failure.
Parses output from jikes and passes errors and warnings into the right logging channels of Project.As of Ant 1.2, this class is considered to be dead code by the Ant developers and is unmaintained. Don't use it.
Field Summary | |
---|---|
protected BufferedReader | br |
protected boolean | emacsMode |
protected boolean | error |
protected boolean | errorFlag |
protected int | errors |
protected Task | task |
protected int | warnings |
Constructor Summary | |
---|---|
protected | JikesOutputParser(Task task, boolean emacsMode)
Construct a new Parser object |
Method Summary | |
---|---|
protected boolean | getErrorFlag()
Indicate if there were errors during the compile |
protected void | parseOutput(BufferedReader reader)
Parse the output of a jikes compiler |
void | setProcessErrorStream(InputStream is)
Ignore. |
void | setProcessInputStream(OutputStream os)
Ignore. |
void | setProcessOutputStream(InputStream is)
Set the inputstream |
void | start()
Invokes parseOutput. |
void | stop()
Ignore. |
Parameters: task task in which context we are called emacsMode if true output in emacs mode
Returns: if errors occurred
Parameters: reader - Reader used to read jikes's output
Throws: IOException on error
Parameters: is ignored
Parameters: os ignored
Parameters: is the input stream
Throws: IOException on error
Throws: IOException on error