public class DefaultNExecutionContext extends Object implements net.thevpc.nuts.command.NExecutionContext
| Constructor and Description |
|---|
DefaultNExecutionContext(net.thevpc.nuts.artifact.NDefinition definition,
List<String> arguments,
List<String> executorArgs,
List<String> workspaceOptions,
Map<String,String> env,
net.thevpc.nuts.io.NPath cwd,
boolean failFast,
boolean temporary,
net.thevpc.nuts.command.NExecutionType executionType,
String commandName,
net.thevpc.nuts.time.NDuration sleepDuration,
net.thevpc.nuts.io.NExecInput in,
net.thevpc.nuts.io.NExecOutput out,
net.thevpc.nuts.io.NExecOutput err,
boolean dry,
boolean bot) |
DefaultNExecutionContext(net.thevpc.nuts.command.NExecutionContext other) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
arguments() |
String |
commandName() |
net.thevpc.nuts.artifact.NDefinition |
definition() |
net.thevpc.nuts.io.NPath |
directory() |
net.thevpc.nuts.command.NExecutionContext |
dry(boolean dry) |
Map<String,String> |
env() |
net.thevpc.nuts.io.NExecOutput |
err() |
DefaultNExecutionContext |
err(net.thevpc.nuts.io.NExecOutput err) |
net.thevpc.nuts.command.NExecutionType |
executionType() |
net.thevpc.nuts.artifact.NArtifactCall |
executorDescriptor() |
List<String> |
executorOptions() |
DefaultNExecutionContext |
failFast(boolean failFast) |
net.thevpc.nuts.io.NExecInput |
in() |
DefaultNExecutionContext |
in(net.thevpc.nuts.io.NExecInput in) |
boolean |
isBot() |
boolean |
isDry() |
boolean |
isFailFast() |
boolean |
isTemporary() |
net.thevpc.nuts.io.NExecOutput |
out() |
DefaultNExecutionContext |
out(net.thevpc.nuts.io.NExecOutput out) |
net.thevpc.nuts.core.NRunAs |
runAs() |
net.thevpc.nuts.core.NSession |
session() |
DefaultNExecutionContext |
setArguments(String[] arguments) |
DefaultNExecutionContext |
setCommandName(String commandName) |
DefaultNExecutionContext |
setCwd(net.thevpc.nuts.io.NPath cwd) |
DefaultNExecutionContext |
setDefinition(net.thevpc.nuts.artifact.NDefinition definition) |
DefaultNExecutionContext |
setEnv(Map<String,String> env) |
DefaultNExecutionContext |
setExecutionType(net.thevpc.nuts.command.NExecutionType executionType) |
DefaultNExecutionContext |
setExecutorDescriptor(net.thevpc.nuts.artifact.NArtifactCall executorDescriptor) |
DefaultNExecutionContext |
setExecutorOptions(String[] executorOptions) |
DefaultNExecutionContext |
setRunAs(net.thevpc.nuts.core.NRunAs runAs) |
DefaultNExecutionContext |
setSession(net.thevpc.nuts.core.NSession session) |
DefaultNExecutionContext |
setTemporary(boolean temporary) |
net.thevpc.nuts.time.NDuration |
sleepDuration() |
List<String> |
workspaceOptions() |
public DefaultNExecutionContext(net.thevpc.nuts.artifact.NDefinition definition,
List<String> arguments,
List<String> executorArgs,
List<String> workspaceOptions,
Map<String,String> env,
net.thevpc.nuts.io.NPath cwd,
boolean failFast,
boolean temporary,
net.thevpc.nuts.command.NExecutionType executionType,
String commandName,
net.thevpc.nuts.time.NDuration sleepDuration,
net.thevpc.nuts.io.NExecInput in,
net.thevpc.nuts.io.NExecOutput out,
net.thevpc.nuts.io.NExecOutput err,
boolean dry,
boolean bot)
public DefaultNExecutionContext(net.thevpc.nuts.command.NExecutionContext other)
public boolean isDry()
isDry in interface net.thevpc.nuts.command.NExecutionContextpublic net.thevpc.nuts.command.NExecutionContext dry(boolean dry)
dry in interface net.thevpc.nuts.command.NExecutionContextpublic boolean isBot()
isBot in interface net.thevpc.nuts.command.NExecutionContextpublic net.thevpc.nuts.io.NExecInput in()
in in interface net.thevpc.nuts.command.NExecutionContextpublic DefaultNExecutionContext in(net.thevpc.nuts.io.NExecInput in)
in in interface net.thevpc.nuts.command.NExecutionContextpublic net.thevpc.nuts.io.NExecOutput out()
out in interface net.thevpc.nuts.command.NExecutionContextpublic DefaultNExecutionContext out(net.thevpc.nuts.io.NExecOutput out)
out in interface net.thevpc.nuts.command.NExecutionContextpublic net.thevpc.nuts.io.NExecOutput err()
err in interface net.thevpc.nuts.command.NExecutionContextpublic DefaultNExecutionContext err(net.thevpc.nuts.io.NExecOutput err)
err in interface net.thevpc.nuts.command.NExecutionContextpublic net.thevpc.nuts.time.NDuration sleepDuration()
sleepDuration in interface net.thevpc.nuts.command.NExecutionContextpublic String commandName()
commandName in interface net.thevpc.nuts.command.NExecutionContextpublic List<String> executorOptions()
executorOptions in interface net.thevpc.nuts.command.NExecutionContextpublic List<String> workspaceOptions()
workspaceOptions in interface net.thevpc.nuts.command.NExecutionContextpublic net.thevpc.nuts.artifact.NDefinition definition()
definition in interface net.thevpc.nuts.command.NExecutionContextpublic List<String> arguments()
arguments in interface net.thevpc.nuts.command.NExecutionContextpublic net.thevpc.nuts.artifact.NArtifactCall executorDescriptor()
executorDescriptor in interface net.thevpc.nuts.command.NExecutionContextpublic net.thevpc.nuts.core.NSession session()
session in interface net.thevpc.nuts.core.NSessionProviderpublic Map<String,String> env()
env in interface net.thevpc.nuts.command.NExecutionContextpublic net.thevpc.nuts.io.NPath directory()
directory in interface net.thevpc.nuts.command.NExecutionContextpublic boolean isFailFast()
isFailFast in interface net.thevpc.nuts.command.NExecutionContextpublic boolean isTemporary()
isTemporary in interface net.thevpc.nuts.command.NExecutionContextpublic net.thevpc.nuts.command.NExecutionType executionType()
executionType in interface net.thevpc.nuts.command.NExecutionContextpublic DefaultNExecutionContext setDefinition(net.thevpc.nuts.artifact.NDefinition definition)
public DefaultNExecutionContext setEnv(Map<String,String> env)
public DefaultNExecutionContext setExecutorOptions(String[] executorOptions)
public DefaultNExecutionContext setArguments(String[] arguments)
public DefaultNExecutionContext setSession(net.thevpc.nuts.core.NSession session)
public DefaultNExecutionContext setExecutorDescriptor(net.thevpc.nuts.artifact.NArtifactCall executorDescriptor)
public DefaultNExecutionContext setCwd(net.thevpc.nuts.io.NPath cwd)
public DefaultNExecutionContext setCommandName(String commandName)
public DefaultNExecutionContext failFast(boolean failFast)
public DefaultNExecutionContext setTemporary(boolean temporary)
public DefaultNExecutionContext setExecutionType(net.thevpc.nuts.command.NExecutionType executionType)
public net.thevpc.nuts.core.NRunAs runAs()
runAs in interface net.thevpc.nuts.command.NExecutionContextpublic DefaultNExecutionContext setRunAs(net.thevpc.nuts.core.NRunAs runAs)
Copyright © 2026 vpc open source initiative. All rights reserved.