Class ScriptExecImpl
- java.lang.Object
-
- com.anrisoftware.globalpom.exec.internal.scriptprocess.AbstractProcessExec
-
- com.anrisoftware.globalpom.exec.internal.scriptprocess.ScriptExecImpl
-
- All Implemented Interfaces:
ScriptExec,Callable<ProcessTask>
public class ScriptExecImpl extends AbstractProcessExec
Executes the script from a template.- Since:
- 2.3
- Author:
- Erwin Mueller, erwin.mueller@deventm.org
-
-
Field Summary
-
Fields inherited from class com.anrisoftware.globalpom.exec.internal.scriptprocess.AbstractProcessExec
DESTROY_ON_TIMEOUT_ARG, DESTROY_ON_TIMEOUT_DEFAULT, ERR_STRING_DEFAULT, EXIT_CODE_ARG, EXIT_CODE_DEFAULT, EXIT_CODES_ARG, OUT_STRING_DEFAULT, TIMEOUT_ARG_ARG, TIMEOUT_DEFAULT
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProcessTaskcall()Executes the script.protected CommandLinecreateCommandLine(ScriptCommandLineFactory commandLineFactory)Creates the command line for the process.StringtoString()-
Methods inherited from class com.anrisoftware.globalpom.exec.internal.scriptprocess.AbstractProcessExec
getScriptString, setupCommandError, setupCommandOutput
-
-
-
-
Method Detail
-
call
public ProcessTask call() throws CommandExecException
Description copied from interface:ScriptExecExecutes the script.- Specified by:
callin interfaceCallable<ProcessTask>- Specified by:
callin interfaceScriptExec- Overrides:
callin classAbstractProcessExec- Throws:
CommandExecException
-
createCommandLine
protected CommandLine createCommandLine(ScriptCommandLineFactory commandLineFactory)
Description copied from class:AbstractProcessExecCreates the command line for the process.- Specified by:
createCommandLinein classAbstractProcessExec- Parameters:
commandLineFactory- theScriptCommandLineFactory.- Returns:
- the
CommandLine.
-
-