Package org.whitesource.agent.utils
Class CommandLineProcess
- java.lang.Object
-
- org.whitesource.agent.utils.CommandLineProcess
-
public class CommandLineProcess extends java.lang.Object- Author:
- raz.nitzan
-
-
Constructor Summary
Constructors Constructor Description CommandLineProcess(java.lang.String rootDirectory, java.lang.String[] args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>executeProcess()java.util.List<java.lang.String>executeProcessWithErrorOutput()voidexecuteProcessWithoutOutput()java.lang.StringgetErrLogPath()intgetExitStatus()booleanisErrorInProcess()voidsetTimeoutProcessMinutes(long timeoutProcessMinutes)voidsetTimeoutReadLineSeconds(long timeoutReadLineSeconds)
-
-
-
Method Detail
-
getErrLogPath
public java.lang.String getErrLogPath()
-
executeProcess
public java.util.List<java.lang.String> executeProcess() throws java.io.IOException- Throws:
java.io.IOException
-
executeProcessWithoutOutput
public void executeProcessWithoutOutput() throws java.io.IOException- Throws:
java.io.IOException
-
executeProcessWithErrorOutput
public java.util.List<java.lang.String> executeProcessWithErrorOutput() throws java.io.IOException- Throws:
java.io.IOException
-
setTimeoutReadLineSeconds
public void setTimeoutReadLineSeconds(long timeoutReadLineSeconds)
-
setTimeoutProcessMinutes
public void setTimeoutProcessMinutes(long timeoutProcessMinutes)
-
isErrorInProcess
public boolean isErrorInProcess()
-
getExitStatus
public int getExitStatus()
-
-