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, PSFields inherited from interface org.codehaus.plexus.compiler.Compiler
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddGosucArgs(org.codehaus.plexus.compiler.CompilerConfiguration config, List<String> fileOutput) (package private) org.codehaus.plexus.compiler.CompilerResultcompileInProcess(org.codehaus.plexus.compiler.CompilerConfiguration config) (package private) org.codehaus.plexus.compiler.CompilerResultcompileOutOfProcess(org.codehaus.plexus.compiler.CompilerConfiguration config) private FilecreateArgFile(org.codehaus.plexus.compiler.CompilerConfiguration config) String[]createCommandLine(org.codehaus.plexus.compiler.CompilerConfiguration config) private StringGet the path of the java executable: try to find it depending the OS or thejava.homesystem property or theJAVA_HOMEenvironment variable.private List<org.codehaus.plexus.compiler.CompilerMessage>parseMessages(int exitCode, String sysout) org.codehaus.plexus.compiler.CompilerResultperformCompile(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, makeClassNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getCompilerIdin 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:
performCompilein interfaceorg.codehaus.plexus.compiler.Compiler- Overrides:
performCompilein 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.homesystem property or theJAVA_HOMEenvironment variable.- Returns:
- the absolute path of the java executable
- Throws:
IOException- if not found
-