org.codehaus.mojo.natives.compiler
Class AbstractCompiler
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.codehaus.mojo.natives.compiler.AbstractCompiler
- All Implemented Interfaces:
- Compiler, org.codehaus.plexus.logging.LogEnabled
public abstract class AbstractCompiler
- extends org.codehaus.plexus.logging.AbstractLogEnabled
- implements Compiler
- Version:
- $Id: AbstractCompiler.java 6588 2008-03-28 12:22:57Z bentmann $
- Author:
- Dan Tran
Fields inherited from interface org.codehaus.mojo.natives.compiler.Compiler |
ROLE |
Method Summary |
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 workingDirectory,
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 |
AbstractCompiler
public AbstractCompiler()
getParser
protected abstract Parser getParser()
getCommandLine
protected abstract org.codehaus.plexus.util.cli.Commandline getCommandLine(java.io.File src,
java.io.File dest,
CompilerConfiguration config)
throws NativeBuildException
- Throws:
NativeBuildException
compile
public java.util.List compile(CompilerConfiguration config,
java.io.File[] sourceFiles)
throws NativeBuildException
- Specified by:
compile
in interface Compiler
- Returns:
- List of compiler ouput files (ie, .o, .obj )
- Throws:
NativeBuildException
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 workingDirectory,
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
Copyright © 2010. All Rights Reserved.