org.apache.tools.ant.taskdefs

Class JikesOutputParser

public class JikesOutputParser extends Object implements ExecuteStreamHandler

Deprecated: 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

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

setProcessErrorStream

public void setProcessErrorStream(InputStream is)
Ignore.

setProcessInputStream

public void setProcessInputStream(OutputStream os)
Ignore.

setProcessOutputStream

public void setProcessOutputStream(InputStream is)
Set the inputstream

start

public void start()
Invokes parseOutput.

stop

public void stop()
Ignore.
Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.