org.apache.tools.ant.taskdefs

Class JikesOutputParser

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 BufferedReaderbr
protected booleanemacsMode
protected booleanerror
protected booleanerrorFlag
protected interrors
protected Tasktask
protected intwarnings
Constructor Summary
protected JikesOutputParser(Task task, boolean emacsMode)
Construct a new Parser object
Method Summary
protected booleangetErrorFlag()
Indicate if there were errors during the compile
protected voidparseOutput(BufferedReader reader)
Parse the output of a jikes compiler
voidsetProcessErrorStream(InputStream is)
Ignore.
voidsetProcessInputStream(OutputStream os)
Ignore.
voidsetProcessOutputStream(InputStream is)
Set the inputstream
voidstart()
Invokes parseOutput.
voidstop()
Ignore.

Field Detail

br

protected BufferedReader br

emacsMode

protected boolean emacsMode

error

protected boolean error

errorFlag

protected boolean errorFlag

errors

protected int errors

task

protected Task task

warnings

protected int warnings

Constructor Detail

JikesOutputParser

protected JikesOutputParser(Task task, boolean emacsMode)
Construct a new Parser object

Parameters: task task in which context we are called emacsMode if true output in emacs mode

Method Detail

getErrorFlag

protected boolean getErrorFlag()
Indicate if there were errors during the compile

Returns: if errors occurred

parseOutput

protected void parseOutput(BufferedReader reader)
Parse the output of a jikes compiler

Parameters: reader - Reader used to read jikes's output

Throws: IOException on error

setProcessErrorStream

public void setProcessErrorStream(InputStream is)
Ignore.

Parameters: is ignored

setProcessInputStream

public void setProcessInputStream(OutputStream os)
Ignore.

Parameters: os ignored

setProcessOutputStream

public void setProcessOutputStream(InputStream is)
Set the inputstream

Parameters: is the input stream

Throws: IOException on error

start

public void start()
Invokes parseOutput.

Throws: IOException on error

stop

public void stop()
Ignore.