Package codes.thischwa.jii.util
Class ProcessBuilderWrapper
- java.lang.Object
-
- codes.thischwa.jii.util.ProcessBuilderWrapper
-
public class ProcessBuilderWrapper extends Object
-
-
Constructor Summary
Constructors Constructor Description ProcessBuilderWrapper(String... command)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ProcessBuilderWrapper
environment(Map<String,String> environment)
String
getOutput()
int
getStatus()
boolean
hasErrors()
static void
main(String[] args)
ProcessBuilderWrapper
redirectToStdOut()
ProcessBuilderWrapper
run()
ProcessBuilderWrapper
workingDirectory(String dir)
-
-
-
Constructor Detail
-
ProcessBuilderWrapper
public ProcessBuilderWrapper(String... command)
-
-
Method Detail
-
run
public ProcessBuilderWrapper run() throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
redirectToStdOut
public ProcessBuilderWrapper redirectToStdOut()
-
workingDirectory
public ProcessBuilderWrapper workingDirectory(String dir)
-
environment
public ProcessBuilderWrapper environment(Map<String,String> environment)
-
getStatus
public int getStatus()
-
getOutput
public String getOutput()
-
hasErrors
public boolean hasErrors()
-
-