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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private 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)
     
    createCommandLine(org.codehaus.plexus.compiler.CompilerConfiguration config)
     
     
    private String
    Get the path of the java executable: try to find it depending the OS or the java.home system property or the JAVA_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

      public String getCompilerId()
      Specified by:
      getCompilerId in class org.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 interface org.codehaus.plexus.compiler.Compiler
      Overrides:
      performCompile in class org.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

      private void addGosucArgs(org.codehaus.plexus.compiler.CompilerConfiguration config, List<String> fileOutput)
    • parseMessages

      private List<org.codehaus.plexus.compiler.CompilerMessage> parseMessages(int exitCode, String sysout)
    • getJavaExecutable

      private String getJavaExecutable() throws IOException
      Get the path of the java executable: try to find it depending the OS or the java.home system property or the JAVA_HOME environment variable.
      Returns:
      the absolute path of the java executable
      Throws:
      IOException - if not found