public abstract class NativeImageBuildRunner extends Object
| Constructor and Description |
|---|
NativeImageBuildRunner() |
| Modifier and Type | Method and Description |
|---|---|
int |
build(List<String> args,
Path outputDir,
boolean processInheritIODisabled) |
void |
cleanupServer(File outputDir) |
protected abstract String[] |
getBuildCommand(List<String> args) |
NativeImageBuildStep.GraalVM.Version |
getGraalVMVersion() |
protected abstract String[] |
getGraalVMVersionCommand(List<String> args) |
protected void |
postBuild() |
protected void |
preBuild(List<String> buildArgs) |
(package private) void |
runCommand(String[] command,
String errorMsg,
File workingDirectory)
Run
command in workingDirectory and log error if errorMsg is not null. |
void |
setup(boolean processInheritIODisabled) |
public NativeImageBuildStep.GraalVM.Version getGraalVMVersion()
public void setup(boolean processInheritIODisabled)
public void cleanupServer(File outputDir) throws InterruptedException, IOException
InterruptedExceptionIOExceptionpublic int build(List<String> args, Path outputDir, boolean processInheritIODisabled) throws InterruptedException, IOException
InterruptedExceptionIOExceptionprotected void preBuild(List<String> buildArgs) throws IOException, InterruptedException
IOExceptionInterruptedExceptionprotected void postBuild()
throws InterruptedException,
IOException
InterruptedExceptionIOExceptionvoid runCommand(String[] command, String errorMsg, File workingDirectory)
command in workingDirectory and log error if errorMsg is not null.command - The command to runerrorMsg - The error message to be printed in case of failure.
If null the failure is ignored, but logged.workingDirectory - The directory in which to run the commandCopyright © 2021 JBoss by Red Hat. All rights reserved.