public abstract class AbstractNExec extends NWorkspaceCmdBase<net.thevpc.nuts.command.NExec> implements net.thevpc.nuts.command.NExec
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
bot |
protected List<String> |
command |
protected net.thevpc.nuts.artifact.NDefinition |
commandDefinition |
protected net.thevpc.nuts.io.NPath |
directory |
protected Boolean |
dry |
protected Map<String,String> |
env |
protected net.thevpc.nuts.io.NExecOutput |
err |
protected boolean |
executed |
protected net.thevpc.nuts.time.NDuration |
executionTime |
protected net.thevpc.nuts.command.NExecutionType |
executionType |
protected List<String> |
executorOptions |
protected boolean |
failFast |
protected net.thevpc.nuts.io.NExecInput |
in |
protected boolean |
multipleRuns |
protected String |
multipleRunsCron |
protected int |
multipleRunsMaxCount |
protected long |
multipleRunsMinTimeMs |
protected long |
multipleRunsSafeTimeMs |
protected net.thevpc.nuts.io.NExecOutput |
out |
protected net.thevpc.nuts.command.NExecutionException |
resultException |
protected net.thevpc.nuts.core.NRunAs |
runAs |
protected List<String> |
workspaceOptions |
| Constructor and Description |
|---|
AbstractNExec() |
| Modifier and Type | Method and Description |
|---|---|
net.thevpc.nuts.command.NExec |
addCommand(Collection<String> command) |
net.thevpc.nuts.command.NExec |
addCommand(net.thevpc.nuts.io.NPath path) |
net.thevpc.nuts.command.NExec |
addCommand(String... command) |
net.thevpc.nuts.command.NExec |
addEnv(Map<String,String> env) |
net.thevpc.nuts.command.NExec |
addExecutorOption(String executorOption) |
net.thevpc.nuts.command.NExec |
addExecutorOptions(Collection<String> executorOptions) |
net.thevpc.nuts.command.NExec |
addExecutorOptions(String... executorOptions) |
net.thevpc.nuts.command.NExec |
addWorkspaceOptions(net.thevpc.nuts.core.NWorkspaceOptions workspaceOptions) |
net.thevpc.nuts.command.NExec |
addWorkspaceOptions(String workspaceOptions) |
net.thevpc.nuts.command.NExec |
at(net.thevpc.nuts.net.NConnectionString connectionString) |
net.thevpc.nuts.command.NExec |
at(String connectionString) |
Boolean |
bot() |
net.thevpc.nuts.command.NExec |
bot(Boolean bot) |
net.thevpc.nuts.command.NExec |
clearCommand() |
net.thevpc.nuts.command.NExec |
clearEnv() |
net.thevpc.nuts.command.NExec |
clearExecutorOptions() |
net.thevpc.nuts.command.NExec |
clearWorkspaceOptions(String workspaceOptions) |
List<String> |
command() |
net.thevpc.nuts.command.NExec |
command(Collection<String> command) |
net.thevpc.nuts.command.NExec |
command(String... command) |
net.thevpc.nuts.artifact.NDefinition |
commandDefinition() |
net.thevpc.nuts.command.NExec |
commandDefinition(net.thevpc.nuts.artifact.NDefinition definition) |
boolean |
configureFirst(net.thevpc.nuts.cmdline.NCmdLine cmdLine) |
net.thevpc.nuts.net.NConnectionString |
connectionString() |
net.thevpc.nuts.command.NExec |
connectionString(net.thevpc.nuts.net.NConnectionString connectionString) |
net.thevpc.nuts.command.NExec |
connectionString(String connectionString) |
net.thevpc.nuts.command.NExec |
copy() |
net.thevpc.nuts.command.NExec |
copyFrom(net.thevpc.nuts.command.NExec other) |
net.thevpc.nuts.command.NExec |
currentUser() |
net.thevpc.nuts.io.NPath |
directory() |
net.thevpc.nuts.command.NExec |
directory(net.thevpc.nuts.io.NPath directory) |
Boolean |
dry() |
net.thevpc.nuts.command.NExec |
dry(Boolean dry) |
net.thevpc.nuts.command.NExec |
embedded() |
Map<String,String> |
env() |
net.thevpc.nuts.command.NExec |
env(Map<String,String> env) |
net.thevpc.nuts.command.NExec |
env(String key,
String value) |
net.thevpc.nuts.io.NExecOutput |
err() |
net.thevpc.nuts.command.NExec |
err(net.thevpc.nuts.io.NExecOutput err) |
net.thevpc.nuts.command.NExecutionType |
executionType() |
net.thevpc.nuts.command.NExec |
executionType(net.thevpc.nuts.command.NExecutionType executionType) |
List<String> |
executorOptions() |
net.thevpc.nuts.command.NExec |
executorOptions(Collection<String> executorOptions) |
int |
exitCode() |
net.thevpc.nuts.command.NExec |
failFast(boolean failFast) |
String |
getCommandString() |
String |
getCommandString(ProcessBuilder2.CommandStringFormat f) |
protected String |
getExtraErrorMessage() |
net.thevpc.nuts.command.NExec |
grabAll() |
String |
grabbedAll() |
String |
grabbedErr() |
byte[] |
grabbedErrBytes() |
String |
grabbedOut() |
byte[] |
grabbedOutBytes() |
String |
grabbedOutOnly() |
net.thevpc.nuts.command.NExec |
grabErr() |
net.thevpc.nuts.command.NExec |
grabOut() |
net.thevpc.nuts.command.NExec |
grabOutOnly() |
net.thevpc.nuts.io.NExecInput |
in() |
net.thevpc.nuts.command.NExec |
in(net.thevpc.nuts.io.NExecInput in) |
boolean |
isFailFast() |
boolean |
isRawCommand() |
net.thevpc.nuts.command.NExec |
maxBytes(int maxBytes) |
net.thevpc.nuts.command.NExec |
maxLines(int maxLines) |
net.thevpc.nuts.command.NExec |
open() |
net.thevpc.nuts.io.NExecOutput |
out() |
net.thevpc.nuts.command.NExec |
out(net.thevpc.nuts.io.NExecOutput out) |
net.thevpc.nuts.command.NExec |
rawCommand(boolean rawCommand) |
net.thevpc.nuts.command.NExec |
redirectErr() |
net.thevpc.nuts.util.NOptional<net.thevpc.nuts.command.NExecutionException> |
resultException() |
net.thevpc.nuts.command.NExec |
root() |
net.thevpc.nuts.core.NRunAs |
runAs() |
net.thevpc.nuts.command.NExec |
runAs(net.thevpc.nuts.core.NRunAs runAs) |
net.thevpc.nuts.time.NDuration |
sleepDuration() |
net.thevpc.nuts.command.NExec |
sleepDuration(net.thevpc.nuts.time.NDuration sleepMillis) |
net.thevpc.nuts.command.NExec |
spawn() |
net.thevpc.nuts.command.NExec |
sudo() |
net.thevpc.nuts.command.NExec |
system() |
String |
toString() |
List<String> |
workspaceOptions() |
_LOG, configure, copyFromWorkspaceCommandBase, getCommandName, invalidateResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprotected net.thevpc.nuts.artifact.NDefinition commandDefinition
protected net.thevpc.nuts.command.NExecutionException resultException
protected boolean executed
protected net.thevpc.nuts.time.NDuration executionTime
protected boolean multipleRuns
protected long multipleRunsMinTimeMs
protected long multipleRunsSafeTimeMs
protected int multipleRunsMaxCount
protected String multipleRunsCron
protected net.thevpc.nuts.io.NPath directory
protected net.thevpc.nuts.io.NExecOutput out
protected net.thevpc.nuts.io.NExecOutput err
protected net.thevpc.nuts.io.NExecInput in
protected net.thevpc.nuts.command.NExecutionType executionType
protected net.thevpc.nuts.core.NRunAs runAs
protected Boolean dry
protected boolean failFast
protected Boolean bot
public boolean isFailFast()
isFailFast in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec bot(Boolean bot)
bot in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec maxLines(int maxLines)
maxLines in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec maxBytes(int maxBytes)
maxBytes in interface net.thevpc.nuts.command.NExecpublic Boolean bot()
bot in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec failFast(boolean failFast)
failFast in interface net.thevpc.nuts.command.NExecpublic List<String> command()
command in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec command(String... command)
command in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec command(Collection<String> command)
command in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec commandDefinition(net.thevpc.nuts.artifact.NDefinition definition)
commandDefinition in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.artifact.NDefinition commandDefinition()
commandDefinition in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec addCommand(net.thevpc.nuts.io.NPath path)
addCommand in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec addCommand(String... command)
addCommand in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec addCommand(Collection<String> command)
addCommand in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec clearCommand()
clearCommand in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec addExecutorOption(String executorOption)
addExecutorOption in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec addExecutorOptions(String... executorOptions)
addExecutorOptions in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec executorOptions(Collection<String> executorOptions)
executorOptions in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec addExecutorOptions(Collection<String> executorOptions)
addExecutorOptions in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec clearExecutorOptions()
clearExecutorOptions in interface net.thevpc.nuts.command.NExecpublic List<String> workspaceOptions()
workspaceOptions in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec clearWorkspaceOptions(String workspaceOptions)
clearWorkspaceOptions in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec addWorkspaceOptions(net.thevpc.nuts.core.NWorkspaceOptions workspaceOptions)
addWorkspaceOptions in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec addWorkspaceOptions(String workspaceOptions)
addWorkspaceOptions in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec env(Map<String,String> env)
env in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec addEnv(Map<String,String> env)
addEnv in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec env(String key, String value)
env in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec clearEnv()
clearEnv in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.io.NPath directory()
directory in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec directory(net.thevpc.nuts.io.NPath directory)
directory in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.io.NExecInput in()
in in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec in(net.thevpc.nuts.io.NExecInput in)
in in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.io.NExecOutput out()
out in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec out(net.thevpc.nuts.io.NExecOutput out)
out in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec grabOut()
grabOut in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec grabAll()
grabAll in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec grabOutOnly()
grabOutOnly in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec grabErr()
grabErr in interface net.thevpc.nuts.command.NExecpublic String grabbedAll()
grabbedAll in interface net.thevpc.nuts.command.NExecpublic String grabbedOutOnly()
grabbedOutOnly in interface net.thevpc.nuts.command.NExecpublic String grabbedOut()
grabbedOut in interface net.thevpc.nuts.command.NExecpublic byte[] grabbedOutBytes()
grabbedOutBytes in interface net.thevpc.nuts.command.NExecpublic byte[] grabbedErrBytes()
grabbedErrBytes in interface net.thevpc.nuts.command.NExecpublic String grabbedErr()
grabbedErr in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.io.NExecOutput err()
err in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec err(net.thevpc.nuts.io.NExecOutput err)
err in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExecutionType executionType()
executionType in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec executionType(net.thevpc.nuts.command.NExecutionType executionType)
executionType in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec system()
system in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec embedded()
embedded in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec spawn()
spawn in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec open()
open in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.core.NRunAs runAs()
runAs in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec sudo()
sudo in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec root()
root in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec currentUser()
currentUser in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec runAs(net.thevpc.nuts.core.NRunAs runAs)
runAs in interface net.thevpc.nuts.command.NExecpublic Boolean dry()
dry in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec dry(Boolean dry)
dry in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec copyFrom(net.thevpc.nuts.command.NExec other)
copyFrom in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec copy()
copy in interface net.thevpc.nuts.command.NExecpublic int exitCode()
exitCode in interface net.thevpc.nuts.command.NExecpublic List<String> executorOptions()
executorOptions in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.util.NOptional<net.thevpc.nuts.command.NExecutionException> resultException()
resultException in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.time.NDuration sleepDuration()
sleepDuration in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec sleepDuration(net.thevpc.nuts.time.NDuration sleepMillis)
sleepDuration in interface net.thevpc.nuts.command.NExecprotected String getExtraErrorMessage()
public boolean configureFirst(net.thevpc.nuts.cmdline.NCmdLine cmdLine)
configureFirst in interface net.thevpc.nuts.cmdline.NCmdLineConfigurableconfigureFirst in class NWorkspaceCmdBase<net.thevpc.nuts.command.NExec>public String getCommandString()
public String getCommandString(ProcessBuilder2.CommandStringFormat f)
public net.thevpc.nuts.net.NConnectionString connectionString()
connectionString in interface net.thevpc.nuts.command.NExecconnectionString in interface net.thevpc.nuts.platform.NConnectionStringAwarepublic net.thevpc.nuts.command.NExec connectionString(String connectionString)
connectionString in interface net.thevpc.nuts.command.NExecconnectionString in interface net.thevpc.nuts.platform.NConnectionStringAwarepublic net.thevpc.nuts.command.NExec at(String connectionString)
at in interface net.thevpc.nuts.command.NExecat in interface net.thevpc.nuts.platform.NConnectionStringAwarepublic net.thevpc.nuts.command.NExec at(net.thevpc.nuts.net.NConnectionString connectionString)
at in interface net.thevpc.nuts.command.NExecat in interface net.thevpc.nuts.platform.NConnectionStringAwarepublic net.thevpc.nuts.command.NExec connectionString(net.thevpc.nuts.net.NConnectionString connectionString)
connectionString in interface net.thevpc.nuts.command.NExecconnectionString in interface net.thevpc.nuts.platform.NConnectionStringAwarepublic net.thevpc.nuts.command.NExec redirectErr()
redirectErr in interface net.thevpc.nuts.command.NExecpublic boolean isRawCommand()
isRawCommand in interface net.thevpc.nuts.command.NExecpublic net.thevpc.nuts.command.NExec rawCommand(boolean rawCommand)
rawCommand in interface net.thevpc.nuts.command.NExecCopyright © 2026 vpc open source initiative. All rights reserved.