public class CCompilerInvoker extends Object
| Modifier and Type | Field and Description |
|---|---|
protected NativeLibraries |
nativeLibs |
protected Path |
tempDirectory |
| Constructor and Description |
|---|
CCompilerInvoker(NativeLibraries nativeLibs,
Path tempDirectory) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
commandString(List<String> command) |
Path |
compileAndParseError(List<String> options,
Path source,
Path target) |
String |
lastExecutedCommand() |
protected void |
reportCompilerError(Path queryFile,
String line) |
int |
runCommandToExit(List<String> command) |
Process |
startCommand(List<String> command) |
Process |
startCompiler(List<String> options,
Path source,
Path target) |
Process |
startPreprocessor(List<String> options,
Path sourceFile) |
protected final NativeLibraries nativeLibs
protected final Path tempDirectory
public CCompilerInvoker(NativeLibraries nativeLibs, Path tempDirectory)
public Process startPreprocessor(List<String> options, Path sourceFile) throws IOException
IOExceptionpublic Path compileAndParseError(List<String> options, Path source, Path target)
public Process startCompiler(List<String> options, Path source, Path target) throws IOException
IOExceptionpublic String lastExecutedCommand()
public Process startCommand(List<String> command) throws IOException
IOException