public abstract class AbstractCompiler extends org.codehaus.plexus.logging.AbstractLogEnabled implements Compiler
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractCompiler.CompilerRunnable |
private class |
AbstractCompiler.CompilerThreadPoolExecutor |
| Constructor and Description |
|---|
AbstractCompiler() |
| Modifier and Type | Method and 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() |
protected abstract Parser getParser()
protected abstract org.codehaus.plexus.util.cli.Commandline getCommandLine(java.io.File src,
java.io.File dest,
CompilerConfiguration config)
throws NativeBuildException
NativeBuildExceptionpublic java.util.List compile(CompilerConfiguration config, java.io.File[] sourceFiles) throws NativeBuildException
compile in interface CompilerNativeBuildExceptionprotected static java.lang.String getObjectFileExtension(java.lang.String fileExtension)
protected static java.io.File getObjectFile(java.io.File sourceFile,
java.io.File outputDirectory,
java.lang.String objectFileExtension)
throws NativeBuildException
sourceFile - workingDirectory - outputDirectory - config - NativeBuildException