Class GosuCompiler
java.lang.Object
org.codehaus.plexus.compiler.AbstractCompiler
org.gosulang.plexus.compiler.gosu.GosuCompiler
- All Implemented Interfaces:
org.codehaus.plexus.compiler.Compiler
public class GosuCompiler
extends org.codehaus.plexus.compiler.AbstractCompiler
-
Field Summary
Fields inherited from class org.codehaus.plexus.compiler.AbstractCompiler
EOL, PS
Fields inherited from interface org.codehaus.plexus.compiler.Compiler
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addGosucArgs
(org.codehaus.plexus.compiler.CompilerConfiguration config, List<String> fileOutput) (package private) org.codehaus.plexus.compiler.CompilerResult
compileInProcess
(org.codehaus.plexus.compiler.CompilerConfiguration config) (package private) org.codehaus.plexus.compiler.CompilerResult
compileOutOfProcess
(org.codehaus.plexus.compiler.CompilerConfiguration config) private File
createArgFile
(org.codehaus.plexus.compiler.CompilerConfiguration config) String[]
createCommandLine
(org.codehaus.plexus.compiler.CompilerConfiguration config) private String
Get the path of the java executable: try to find it depending the OS or thejava.home
system property or theJAVA_HOME
environment variable.private List<org.codehaus.plexus.compiler.CompilerMessage>
parseMessages
(int exitCode, String sysout) org.codehaus.plexus.compiler.CompilerResult
performCompile
(org.codehaus.plexus.compiler.CompilerConfiguration config) Methods inherited from class org.codehaus.plexus.compiler.AbstractCompiler
canUpdateTarget, getCompilerOutputStyle, getInputFileEnding, getLog, getLogger, getOutputFile, getOutputFileEnding, getPathString, getSourceFiles, getSourceFilesForSourceRoot, logCompiling, makeClassName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.codehaus.plexus.compiler.Compiler
supportsIncrementalCompilation
-
Constructor Details
-
GosuCompiler
public GosuCompiler()
-
-
Method Details
-
createCommandLine
public String[] createCommandLine(org.codehaus.plexus.compiler.CompilerConfiguration config) throws org.codehaus.plexus.compiler.CompilerException - Throws:
org.codehaus.plexus.compiler.CompilerException
-
getCompilerId
- Specified by:
getCompilerId
in classorg.codehaus.plexus.compiler.AbstractCompiler
-
performCompile
public org.codehaus.plexus.compiler.CompilerResult performCompile(org.codehaus.plexus.compiler.CompilerConfiguration config) throws org.codehaus.plexus.compiler.CompilerException - Specified by:
performCompile
in interfaceorg.codehaus.plexus.compiler.Compiler
- Overrides:
performCompile
in classorg.codehaus.plexus.compiler.AbstractCompiler
- Throws:
org.codehaus.plexus.compiler.CompilerException
-
compileOutOfProcess
org.codehaus.plexus.compiler.CompilerResult compileOutOfProcess(org.codehaus.plexus.compiler.CompilerConfiguration config) throws org.codehaus.plexus.compiler.CompilerException - Throws:
org.codehaus.plexus.compiler.CompilerException
-
compileInProcess
org.codehaus.plexus.compiler.CompilerResult compileInProcess(org.codehaus.plexus.compiler.CompilerConfiguration config) throws org.codehaus.plexus.compiler.CompilerException - Throws:
org.codehaus.plexus.compiler.CompilerException
-
createArgFile
private File createArgFile(org.codehaus.plexus.compiler.CompilerConfiguration config) throws IOException - Throws:
IOException
-
addGosucArgs
-
parseMessages
-
getJavaExecutable
Get the path of the java executable: try to find it depending the OS or thejava.home
system property or theJAVA_HOME
environment variable.- Returns:
- the absolute path of the java executable
- Throws:
IOException
- if not found
-