Top Description Fields Constructors Methods
org.apache.tools.ant.taskdefs

public Class JikesOutputParser

extends Object
implements ExecuteStreamHandler
Class Inheritance
All Implemented Interfaces
org.apache.tools.ant.taskdefs.ExecuteStreamHandler
Annotations
@Deprecated
Imports
java.io.BufferedReader, .IOException, .InputStream, .InputStreamReader, .OutputStream, org.apache.tools.ant.Project, .Task

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

Modifier and TypeField and Description
protected BufferedReader
protected boolean
protected boolean
protected boolean
protected int
protected Task
protected int

Constructor Summary

AccessConstructor and Description
protected
JikesOutputParser(Task
task in which context we are called
task
,
boolean
if true output in emacs mode
emacsMode
)

Construct a new Parser object

Method Summary

Modifier and TypeMethod and Description
protected boolean

Returns:

if errors occurred
getErrorFlag
()

Indicate if there were errors during the compile

private void
log(String line)

private void
protected void
parseOutput(BufferedReader
- Reader used to read jikes's output
reader
)

Parse the output of a jikes compiler

private void
private void
setError(boolean err)

public void
public void
public void
public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

brback to summary
protected BufferedReader br
emacsModeback to summary
protected boolean emacsMode
errorback to summary
protected boolean error
errorFlagback to summary
protected boolean errorFlag
errorsback to summary
protected int errors
taskback to summary
protected Task task
warningsback to summary
protected int warnings

Constructor Detail

JikesOutputParserback to summary
protected JikesOutputParser(Task task, boolean emacsMode)

Construct a new Parser object

Parameters
task:Task

task in which context we are called

emacsMode:boolean

if true output in emacs mode

Method Detail

getErrorFlagback to summary
protected boolean getErrorFlag()

Indicate if there were errors during the compile

Returns:boolean

if errors occurred

logback to summary
private void log(String line)
parseEmacsOutputback to summary
private void parseEmacsOutput(BufferedReader reader) throws IOException
parseOutputback to summary
protected void parseOutput(BufferedReader reader) throws IOException

Parse the output of a jikes compiler

Parameters
reader:BufferedReader

- Reader used to read jikes's output

Exceptions
IOException:
on error
parseStandardOutputback to summary
private void parseStandardOutput(BufferedReader reader) throws IOException
setErrorback to summary
private void setError(boolean err)
setProcessErrorStreamback to summary
public void setProcessErrorStream(InputStream is)

Implements org.apache.tools.ant.taskdefs.ExecuteStreamHandler.setProcessErrorStream.

Ignore.

Parameters
is:InputStream

ignored

setProcessInputStreamback to summary
public void setProcessInputStream(OutputStream os)

Implements org.apache.tools.ant.taskdefs.ExecuteStreamHandler.setProcessInputStream.

Ignore.

Parameters
os:OutputStream

ignored

setProcessOutputStreamback to summary
public void setProcessOutputStream(InputStream is) throws IOException

Implements org.apache.tools.ant.taskdefs.ExecuteStreamHandler.setProcessOutputStream.

Set the inputstream

Parameters
is:InputStream

the input stream

Exceptions
IOException:
on error
startback to summary
public void start() throws IOException

Implements org.apache.tools.ant.taskdefs.ExecuteStreamHandler.start.

Invokes parseOutput.

Exceptions
IOException:
on error
stopback to summary
public void stop()

Implements org.apache.tools.ant.taskdefs.ExecuteStreamHandler.stop.

Ignore.