Class RunProcess
java.lang.Object
org.springframework.boot.loader.tools.RunProcess
Utility used to run a process.
- Since:
- 1.1.0
- 
Constructor SummaryConstructorsConstructorDescriptionRunProcess(File workingDirectory, String... command) Creates newRunProcessinstance for the specified working directory and command.RunProcess(String... command) Creates newRunProcessinstance for the specified command.
- 
Method SummaryModifier and TypeMethodDescriptionReturn the running process.booleanReturn if the process was stopped.booleanvoidkill()Kill this process.intint
- 
Constructor Details- 
RunProcessCreates newRunProcessinstance for the specified command.- Parameters:
- command- the program to execute and its arguments
 
- 
RunProcessCreates newRunProcessinstance for the specified working directory and command.- Parameters:
- workingDirectory- the working directory of the child process or- nullto run in the working directory of the current Java process
- command- the program to execute and its arguments
 
 
- 
- 
Method Details- 
run- Throws:
- IOException
 
- 
runpublic int run(boolean waitForProcess, Collection<String> args, Map<String, String> environmentVariables) throws IOException- Throws:
- IOException
 
- 
getRunningProcessReturn the running process.- Returns:
- the process or null
 
- 
handleSigIntpublic boolean handleSigInt()Return if the process was stopped.- Returns:
- trueif stopped
 
- 
killpublic void kill()Kill this process.
- 
hasJustEndedpublic boolean hasJustEnded()
 
-