Class AbstractCompiler

  • All Implemented Interfaces:
    Compiler, org.codehaus.plexus.logging.LogEnabled
    Direct Known Subclasses:
    AbstractCCompiler

    public abstract class AbstractCompiler
    extends org.codehaus.plexus.logging.AbstractLogEnabled
    implements Compiler
    • Field Summary

      • Fields inherited from interface org.codehaus.mojo.natives.compiler.Compiler

        ROLE
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List compile​(CompilerConfiguration config, java.io.File[] sourceFiles)  
      protected abstract org.codehaus.plexus.util.cli.Commandline getCommandLine​(java.io.File src, java.io.File dest, CompilerConfiguration config)  
      protected static java.io.File getObjectFile​(java.io.File sourceFile, java.io.File outputDirectory, java.lang.String objectFileExtension)
      Figure out the object file relative path from a given source file
      protected static java.lang.String getObjectFileExtension​(java.lang.String fileExtension)
      return "obj" or "o" when file extension is not given based on current platform
      protected abstract Parser getParser()  
      • Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled

        enableLogging, getLogger, setupLogger, setupLogger, setupLogger
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractCompiler

        public AbstractCompiler()
    • Method Detail

      • getParser

        protected abstract Parser getParser()
      • getObjectFileExtension

        protected static java.lang.String getObjectFileExtension​(java.lang.String fileExtension)
        return "obj" or "o" when file extension is not given based on current platform
        Returns:
      • getObjectFile

        protected static java.io.File getObjectFile​(java.io.File sourceFile,
                                                    java.io.File outputDirectory,
                                                    java.lang.String objectFileExtension)
                                             throws NativeBuildException
        Figure out the object file relative path from a given source file
        Parameters:
        sourceFile -
        workingDirectory -
        outputDirectory -
        config -
        Returns:
        Throws:
        NativeBuildException