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
-
-
Constructor Summary
Constructors Constructor Description GosuCompiler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidaddGosucArgs(org.codehaus.plexus.compiler.CompilerConfiguration config, java.util.List<java.lang.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 java.io.FilecreateArgFile(org.codehaus.plexus.compiler.CompilerConfiguration config)java.lang.String[]createCommandLine(org.codehaus.plexus.compiler.CompilerConfiguration config)java.lang.StringgetCompilerId()private java.lang.StringgetJavaExecutable()Get the path of the java executable: try to find it depending the OS or thejava.homesystem property or theJAVA_HOMEenvironment variable.private java.util.List<org.codehaus.plexus.compiler.CompilerMessage>parseMessages(int exitCode, java.lang.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, makeClassName
-
-
-
-
Method Detail
-
createCommandLine
public java.lang.String[] createCommandLine(org.codehaus.plexus.compiler.CompilerConfiguration config) throws org.codehaus.plexus.compiler.CompilerException- Throws:
org.codehaus.plexus.compiler.CompilerException
-
getCompilerId
public java.lang.String 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 java.io.File createArgFile(org.codehaus.plexus.compiler.CompilerConfiguration config) throws java.io.IOException- Throws:
java.io.IOException
-
addGosucArgs
private void addGosucArgs(org.codehaus.plexus.compiler.CompilerConfiguration config, java.util.List<java.lang.String> fileOutput)
-
parseMessages
private java.util.List<org.codehaus.plexus.compiler.CompilerMessage> parseMessages(int exitCode, java.lang.String sysout)
-
getJavaExecutable
private java.lang.String getJavaExecutable() throws java.io.IOExceptionGet 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:
java.io.IOException- if not found
-
-