public abstract class AbstractNutsExecCommand extends NutsWorkspaceCommandBase<net.thevpc.nuts.NutsExecCommand> implements net.thevpc.nuts.NutsExecCommand
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractNutsExecCommand.SPrintStream |
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
command |
protected net.thevpc.nuts.NutsDefinition |
commandDefinition |
protected String |
directory |
protected boolean |
dry |
protected Map<String,String> |
env |
protected net.thevpc.nuts.NutsPrintStream |
err |
protected boolean |
executed |
protected net.thevpc.nuts.NutsExecutionType |
executionType |
protected List<String> |
executorOptions |
protected boolean |
failFast |
protected InputStream |
in |
protected net.thevpc.nuts.NutsPrintStream |
out |
protected boolean |
redirectErrorStream |
protected net.thevpc.nuts.NutsExecutionException |
result |
protected net.thevpc.nuts.NutsRunAs |
runAs |
session, ws| Constructor and Description |
|---|
AbstractNutsExecCommand(net.thevpc.nuts.NutsWorkspace ws) |
| Modifier and Type | Method and Description |
|---|---|
net.thevpc.nuts.NutsExecCommand |
addCommand(Collection<String> command) |
net.thevpc.nuts.NutsExecCommand |
addCommand(String... command) |
net.thevpc.nuts.NutsExecCommand |
addEnv(Map<String,String> env) |
net.thevpc.nuts.NutsExecCommand |
addExecutorOption(String executorOption) |
net.thevpc.nuts.NutsExecCommand |
addExecutorOptions(Collection<String> executorOptions) |
net.thevpc.nuts.NutsExecCommand |
addExecutorOptions(String... executorOptions) |
net.thevpc.nuts.NutsExecCommand |
clearCommand() |
net.thevpc.nuts.NutsExecCommand |
clearEnv() |
net.thevpc.nuts.NutsExecCommand |
clearExecutorOptions() |
boolean |
configureFirst(net.thevpc.nuts.NutsCommandLine cmdLine) |
net.thevpc.nuts.NutsExecCommand |
copy() |
net.thevpc.nuts.NutsExecCommand |
copyFrom(net.thevpc.nuts.NutsExecCommand other) |
net.thevpc.nuts.NutsExecCommandFormat |
formatter() |
String[] |
getCommand() |
String |
getCommandString() |
String |
getCommandString(ProcessBuilder2.CommandStringFormat f) |
String |
getDirectory() |
Map<String,String> |
getEnv() |
net.thevpc.nuts.NutsPrintStream |
getErr() |
String |
getErrorString() |
net.thevpc.nuts.NutsExecutionType |
getExecutionType() |
String[] |
getExecutorOptions() |
protected String |
getExtraErrorMessage() |
InputStream |
getIn() |
net.thevpc.nuts.NutsPrintStream |
getOut() |
String |
getOutputString() |
String |
getOutputString0() |
String |
getRedirectInpuFile() |
String |
getRedirectOuputFile() |
int |
getResult() |
net.thevpc.nuts.NutsExecutionException |
getResultException() |
net.thevpc.nuts.NutsRunAs |
getRunAs() |
int |
getSleepMillis() |
net.thevpc.nuts.NutsExecCommand |
grabErrorString() |
net.thevpc.nuts.NutsExecCommand |
grabOutputString() |
boolean |
isDry() |
boolean |
isFailFast() |
boolean |
isGrabErrorString() |
boolean |
isGrabOutputString() |
boolean |
isInheritSystemIO() |
boolean |
isRedirectErrorStream() |
net.thevpc.nuts.NutsExecCommand |
setCommand(Collection<String> command) |
net.thevpc.nuts.NutsExecCommand |
setCommand(net.thevpc.nuts.NutsDefinition definition) |
net.thevpc.nuts.NutsExecCommand |
setCommand(String... command) |
net.thevpc.nuts.NutsExecCommand |
setDirectory(String directory) |
net.thevpc.nuts.NutsExecCommand |
setDry(boolean value) |
net.thevpc.nuts.NutsExecCommand |
setEnv(Map<String,String> env) |
net.thevpc.nuts.NutsExecCommand |
setEnv(String key,
String value) |
net.thevpc.nuts.NutsExecCommand |
setErr(net.thevpc.nuts.NutsPrintStream err) |
net.thevpc.nuts.NutsExecCommand |
setExecutionType(net.thevpc.nuts.NutsExecutionType executionType) |
net.thevpc.nuts.NutsExecCommand |
setFailFast(boolean failFast) |
net.thevpc.nuts.NutsExecCommand |
setIn(InputStream in) |
net.thevpc.nuts.NutsExecCommand |
setInheritSystemIO(boolean inheritSystemIO) |
net.thevpc.nuts.NutsExecCommand |
setOut(net.thevpc.nuts.NutsPrintStream out) |
net.thevpc.nuts.NutsExecCommand |
setRedirectErrorStream(boolean redirectErrorStream) |
net.thevpc.nuts.NutsExecCommand |
setRedirectInpuFile(String redirectInpuFile) |
net.thevpc.nuts.NutsExecCommand |
setRedirectOuputFile(String redirectOuputFile) |
net.thevpc.nuts.NutsExecCommand |
setRunAs(net.thevpc.nuts.NutsRunAs runAs) |
net.thevpc.nuts.NutsExecCommand |
setSleepMillis(int sleepMillis) |
String |
toString() |
_LOG, _LOGOP, checkSession, configure, configure, copyFromWorkspaceCommandBase, copySession, getCommandName, getSession, getWorkspace, invalidateResult, setSession, setWsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprotected net.thevpc.nuts.NutsDefinition commandDefinition
protected net.thevpc.nuts.NutsExecutionException result
protected boolean executed
protected String directory
protected net.thevpc.nuts.NutsPrintStream out
protected net.thevpc.nuts.NutsPrintStream err
protected InputStream in
protected net.thevpc.nuts.NutsExecutionType executionType
protected net.thevpc.nuts.NutsRunAs runAs
protected boolean redirectErrorStream
protected boolean failFast
protected boolean dry
public AbstractNutsExecCommand(net.thevpc.nuts.NutsWorkspace ws)
public net.thevpc.nuts.NutsExecCommandFormat formatter()
formatter in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecCommand setFailFast(boolean failFast)
setFailFast in interface net.thevpc.nuts.NutsExecCommandpublic boolean isFailFast()
isFailFast in interface net.thevpc.nuts.NutsExecCommandpublic String[] getCommand()
getCommand in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecCommand setCommand(net.thevpc.nuts.NutsDefinition definition)
setCommand in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecCommand setCommand(String... command)
setCommand in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecCommand setCommand(Collection<String> command)
setCommand in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecCommand addCommand(String... command)
addCommand in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecCommand clearCommand()
clearCommand in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecCommand addCommand(Collection<String> command)
addCommand in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecCommand addExecutorOption(String executorOption)
addExecutorOption in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecCommand addExecutorOptions(String... executorOptions)
addExecutorOptions in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecCommand addExecutorOptions(Collection<String> executorOptions)
addExecutorOptions in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecCommand clearExecutorOptions()
clearExecutorOptions in interface net.thevpc.nuts.NutsExecCommandpublic Map<String,String> getEnv()
getEnv in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecCommand addEnv(Map<String,String> env)
addEnv in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecCommand setEnv(String key, String value)
setEnv in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecCommand setEnv(Map<String,String> env)
setEnv in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecCommand clearEnv()
clearEnv in interface net.thevpc.nuts.NutsExecCommandpublic String getDirectory()
getDirectory in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecCommand setDirectory(String directory)
setDirectory in interface net.thevpc.nuts.NutsExecCommandpublic InputStream getIn()
getIn in interface net.thevpc.nuts.NutsExecCommandpublic boolean isInheritSystemIO()
isInheritSystemIO in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecCommand setInheritSystemIO(boolean inheritSystemIO)
setInheritSystemIO in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecCommand setIn(InputStream in)
setIn in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsPrintStream getOut()
getOut in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecCommand grabOutputString()
grabOutputString in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecCommand grabErrorString()
grabErrorString in interface net.thevpc.nuts.NutsExecCommandpublic String getOutputString()
getOutputString in interface net.thevpc.nuts.NutsExecCommandpublic String getOutputString0()
public String getErrorString()
getErrorString in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecCommand setOut(net.thevpc.nuts.NutsPrintStream out)
setOut in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecCommand setErr(net.thevpc.nuts.NutsPrintStream err)
setErr in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsPrintStream getErr()
getErr in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecutionType getExecutionType()
getExecutionType in interface net.thevpc.nuts.NutsExecCommandpublic boolean isRedirectErrorStream()
isRedirectErrorStream in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecCommand setRedirectErrorStream(boolean redirectErrorStream)
setRedirectErrorStream in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecCommand setExecutionType(net.thevpc.nuts.NutsExecutionType executionType)
setExecutionType in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsRunAs getRunAs()
getRunAs in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecCommand setRunAs(net.thevpc.nuts.NutsRunAs runAs)
setRunAs in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecCommand copyFrom(net.thevpc.nuts.NutsExecCommand other)
copyFrom in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecCommand copy()
copy in interface net.thevpc.nuts.NutsExecCommandpublic int getResult()
getResult in interface net.thevpc.nuts.NutsExecCommandpublic String[] getExecutorOptions()
getExecutorOptions in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecutionException getResultException()
getResultException in interface net.thevpc.nuts.NutsExecCommandprotected String getExtraErrorMessage()
public boolean configureFirst(net.thevpc.nuts.NutsCommandLine cmdLine)
configureFirst in interface net.thevpc.nuts.NutsCommandLineConfigurableconfigureFirst in class NutsWorkspaceCommandBase<net.thevpc.nuts.NutsExecCommand>public boolean isDry()
isDry in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecCommand setDry(boolean value)
setDry in interface net.thevpc.nuts.NutsExecCommandpublic boolean isGrabOutputString()
public boolean isGrabErrorString()
public String getCommandString()
public String getCommandString(ProcessBuilder2.CommandStringFormat f)
public int getSleepMillis()
getSleepMillis in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecCommand setSleepMillis(int sleepMillis)
setSleepMillis in interface net.thevpc.nuts.NutsExecCommandpublic String getRedirectOuputFile()
getRedirectOuputFile in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecCommand setRedirectOuputFile(String redirectOuputFile)
setRedirectOuputFile in interface net.thevpc.nuts.NutsExecCommandpublic String getRedirectInpuFile()
getRedirectInpuFile in interface net.thevpc.nuts.NutsExecCommandpublic net.thevpc.nuts.NutsExecCommand setRedirectInpuFile(String redirectInpuFile)
setRedirectInpuFile in interface net.thevpc.nuts.NutsExecCommandCopyright © 2021 vpc open source initiative. All rights reserved.