Compiler
AbstractCCompiler
public abstract class AbstractCompiler extends org.codehaus.plexus.logging.AbstractLogEnabled implements Compiler
Modifier and Type | Class | Description |
---|---|---|
class |
AbstractCompiler.CompilerRunnable |
Constructor | Description |
---|---|
AbstractCompiler() |
Modifier and Type | Method | Description |
---|---|---|
List |
compile(CompilerConfiguration config,
File[] sourceFiles) |
|
protected abstract org.codehaus.plexus.util.cli.Commandline |
getCommandLine(File src,
File dest,
CompilerConfiguration config) |
|
protected static File |
getObjectFile(File sourceFile,
File outputDirectory,
String objectFileExtension) |
Figure out the object file relative path from a given source file
|
protected static String |
getObjectFileExtension(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(File src, File dest, CompilerConfiguration config) throws NativeBuildException
NativeBuildException
public List compile(CompilerConfiguration config, File[] sourceFiles) throws NativeBuildException
compile
in interface Compiler
NativeBuildException
protected static String getObjectFileExtension(String fileExtension)
protected static File getObjectFile(File sourceFile, File outputDirectory, String objectFileExtension) throws NativeBuildException
sourceFile
- workingDirectory
- outputDirectory
- config
- NativeBuildException
Copyright © 2019 MojoHaus. All rights reserved.