public class JikesCompiler extends AbstractCompiler
Modifier and Type | Field and Description |
---|---|
private static int |
OUTPUT_BUFFER_SIZE |
EOL, PS
Constructor and Description |
---|
JikesCompiler() |
Modifier and Type | Method and Description |
---|---|
private java.util.List<java.lang.String> |
asList(java.io.File[] files) |
java.lang.String[] |
createCommandLine(CompilerConfiguration config)
Create the command line that would be executed using this configuration.
|
private java.util.List<java.lang.String> |
getBootClassPath() |
private java.io.File |
getDestinationDir(CompilerConfiguration config) |
private CompilerMessage |
parseError(java.lang.String error)
Parse an individual compiler error message
|
protected java.util.List<CompilerMessage> |
parseStream(java.io.BufferedReader input,
java.util.List<CompilerMessage> messages)
Parse the compiler error stream to produce a list of
CompilerMessage s |
CompilerResult |
performCompile(CompilerConfiguration config)
Performs the compilation of the project.
|
canUpdateTarget, compile, getCompilerOutputStyle, getInputFileEnding, getOutputFile, getOutputFileEnding, getPathString, getSourceFiles, getSourceFilesForSourceRoot, makeClassName, toStringArray
private static final int OUTPUT_BUFFER_SIZE
public CompilerResult performCompile(CompilerConfiguration config) throws CompilerException
Compiler
performCompile
in interface Compiler
performCompile
in class AbstractCompiler
config
- the configuration description of the compilation
to performCompilerException
public java.lang.String[] createCommandLine(CompilerConfiguration config) throws CompilerException
Compiler
config
- the CompilerConfiguration describing the compilationCompilerException
- if there was an error generating the command
lineprivate java.io.File getDestinationDir(CompilerConfiguration config)
private java.util.List<java.lang.String> getBootClassPath()
private java.util.List<java.lang.String> asList(java.io.File[] files)
protected java.util.List<CompilerMessage> parseStream(java.io.BufferedReader input, java.util.List<CompilerMessage> messages) throws java.io.IOException
CompilerMessage
sinput
- The error streamjava.io.IOException
- If an error occurs during message collectionprivate CompilerMessage parseError(java.lang.String error)
error
- The error textCompilerMessage