Class 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
      GosuCompiler()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void addGosucArgs​(org.codehaus.plexus.compiler.CompilerConfiguration config, java.util.List<java.lang.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 java.io.File createArgFile​(org.codehaus.plexus.compiler.CompilerConfiguration config)  
      java.lang.String[] createCommandLine​(org.codehaus.plexus.compiler.CompilerConfiguration config)  
      java.lang.String getCompilerId()  
      private java.lang.String getJavaExecutable()
      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 java.util.List<org.codehaus.plexus.compiler.CompilerMessage> parseMessages​(int exitCode, java.lang.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 Detail

      • GosuCompiler

        public GosuCompiler()
    • 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:
        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 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.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:
        java.io.IOException - if not found