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 |
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(File src,
File dest,
CompilerConfiguration config)
throws NativeBuildException
- Throws:
NativeBuildException
compile
public List compile(CompilerConfiguration config,
File[] sourceFiles)
throws NativeBuildException
- Specified by:
compile
in interface Compiler
- Returns:
- List of compiler ouput files (ie, .o, .obj )
- Throws:
NativeBuildException
getObjectFileExtension
protected static String getObjectFileExtension(String fileExtension)
- return "obj" or "o" when file extension is not given based on current platform
- Returns:
getObjectFile
protected static File getObjectFile(File sourceFile,
File workingDirectory,
File outputDirectory,
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 © 2011 Codehaus. All Rights Reserved.