org.apache.tools.ant.taskdefsClass JikesOutputParser
- java.lang.Object
- org.apache.tools.ant.taskdefs.JikesOutputParser
- All Implemented Interfaces:
- ExecuteStreamHandler
Deprecated.since 1.2. Use Jikes' exit value to detect compilation failure.
@Deprecated public class JikesOutputParser extends java.lang.Object implements ExecuteStreamHandlerParses 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
Fields Modifier and Type Field and Description protected java.io.BufferedReader
br
Deprecated.protected boolean
emacsMode
Deprecated.protected boolean
error
Deprecated.protected boolean
errorFlag
Deprecated.protected int
errors
Deprecated.protected Task
task
Deprecated.protected int
warnings
Deprecated.
Constructor Summary
Constructors Modifier Constructor and Description protected
JikesOutputParser(Task task, boolean emacsMode)
Deprecated.Construct a new Parser object
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description protected boolean
getErrorFlag()
Deprecated.Indicate if there were errors during the compileprotected void
parseOutput(java.io.BufferedReader reader)
Deprecated.Parse the output of a jikes compilervoid
setProcessErrorStream(java.io.InputStream is)
Deprecated.Ignore.void
setProcessInputStream(java.io.OutputStream os)
Deprecated.Ignore.void
setProcessOutputStream(java.io.InputStream is)
Deprecated.Set the inputstreamvoid
start()
Deprecated.Invokes parseOutput.void
stop()
Deprecated.Ignore.
Field Detail
task
protected Task taskDeprecated.
errorFlag
protected boolean errorFlagDeprecated.
errors
protected int errorsDeprecated.
warnings
protected int warningsDeprecated.
error
protected boolean errorDeprecated.
emacsMode
protected boolean emacsModeDeprecated.
br
protected java.io.BufferedReader brDeprecated.
Constructor Detail
JikesOutputParser
protected JikesOutputParser(Task task, boolean emacsMode)Deprecated.Construct a new Parser object
- Parameters:
task
- task in which context we are calledemacsMode
- if true output in emacs mode
Method Detail
setProcessInputStream
public void setProcessInputStream(java.io.OutputStream os)Deprecated.Ignore.
- Specified by:
setProcessInputStream
in interfaceExecuteStreamHandler
- Parameters:
os
- ignored
setProcessErrorStream
public void setProcessErrorStream(java.io.InputStream is)Deprecated.Ignore.
- Specified by:
setProcessErrorStream
in interfaceExecuteStreamHandler
- Parameters:
is
- ignored
setProcessOutputStream
public void setProcessOutputStream(java.io.InputStream is) throws java.io.IOExceptionDeprecated.Set the inputstream
- Specified by:
setProcessOutputStream
in interfaceExecuteStreamHandler
- Parameters:
is
- the input stream- Throws:
java.io.IOException
- on error
start
public void start() throws java.io.IOExceptionDeprecated.Invokes parseOutput.
- Specified by:
start
in interfaceExecuteStreamHandler
- Throws:
java.io.IOException
- on error
stop
public void stop()Deprecated.Ignore.
- Specified by:
stop
in interfaceExecuteStreamHandler
parseOutput
protected void parseOutput(java.io.BufferedReader reader) throws java.io.IOExceptionDeprecated.Parse the output of a jikes compiler
- Parameters:
reader
- - Reader used to read jikes's output- Throws:
java.io.IOException
- on error
getErrorFlag
protected boolean getErrorFlag()Deprecated.Indicate if there were errors during the compile
- Returns:
- if errors occurred