org.apache.tools.ant.taskdefs

Class JikesOutputParser

Implemented Interfaces:
ExecuteStreamHandler

public class JikesOutputParser
extends java.lang.Object
implements ExecuteStreamHandler

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

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.

Field Details

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 Details

JikesOutputParser

protected JikesOutputParser(Task task,
                            boolean emacsMode)
Construct a new Parser object
Parameters:
task - - task in which context we are called

Method Details

getErrorFlag

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

parseOutput

protected void parseOutput(BufferedReader reader)
            throws IOException
Parse the output of a jikes compiler
Parameters:
reader - - Reader used to read jikes's output

setProcessErrorStream

public void setProcessErrorStream(InputStream is)
Ignore.
Specified by:
setProcessErrorStream in interface ExecuteStreamHandler

setProcessInputStream

public void setProcessInputStream(OutputStream os)
Ignore.
Specified by:
setProcessInputStream in interface ExecuteStreamHandler

setProcessOutputStream

public void setProcessOutputStream(InputStream is)
            throws IOException
Set the inputstream
Specified by:
setProcessOutputStream in interface ExecuteStreamHandler

start

public void start()
            throws IOException
Invokes parseOutput.
Specified by:
start in interface ExecuteStreamHandler

stop

public void stop()
Ignore.
Specified by:
stop in interface ExecuteStreamHandler

Copyright B) 2000-2006 Apache Software Foundation. All Rights Reserved.