Package org.wildfly.plugin.cli
Class BaseCommandConfiguration
java.lang.Object
org.wildfly.plugin.cli.BaseCommandConfiguration
- Direct Known Subclasses:
CommandConfiguration
The configuration used to execute forked offline CLI commands.
- Author:
- jdenise@redhat.com
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classstatic class -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionReturns the CLI arguments used if running in a forked process.Returns the commands to be executed.Returns the JBoss Home directory.Returns the JVM options used if running in a forked process.The properties files to use when executing CLI scripts or commands.Returns the scripts to be executed.The pattern used to determine how standard out is handled for a new CLI process.Returns the system properties to set before CLI commands are executed.intGets the timeout, in seconds, used for the management connection.booleanisAppend()Is output appended to file.booleanisBatch()Indicates whether the commands should be run in a batch or not.booleanIs expression resolved.booleanIndicates whether or not CLI commands should fail if the command ends in an error or not.
-
Constructor Details
-
BaseCommandConfiguration
-
-
Method Details
-
isAppend
public boolean isAppend()Is output appended to file.- Returns:
- true to append to the file
-
isBatch
public boolean isBatch()Indicates whether the commands should be run in a batch or not.- Returns:
trueif the commands should be executed in a batch, otherwisefalse
-
getJBossHome
Returns the JBoss Home directory.- Returns:
- the JBoss Home directory or
nullif the value was not set
-
getJvmOptions
Returns the JVM options used if running in a forked process.- Returns:
- the JVM options
-
getCLIArguments
Returns the CLI arguments used if running in a forked process.- Returns:
- the CLI arguments
-
getSystemProperties
Returns the system properties to set before CLI commands are executed.- Returns:
- the system properties to set before CLI commands are executed
-
getPropertiesFiles
The properties files to use when executing CLI scripts or commands.- Returns:
- the paths to the properties files
-
getCommands
Returns the commands to be executed.- Returns:
- the commands to be executed
-
getScripts
Returns the scripts to be executed.- Returns:
- the scripts to be executed
-
isFailOnError
public boolean isFailOnError()Indicates whether or not CLI commands should fail if the command ends in an error or not.- Returns:
trueif a CLI command fails then the execution should fail
-
getStdout
The pattern used to determine how standard out is handled for a new CLI process.- Returns:
- the standard out pattern
-
getTimeout
public int getTimeout()Gets the timeout, in seconds, used for the management connection.- Returns:
- the timeout used for the management connection
-
isExpressionResolved
public boolean isExpressionResolved()Is expression resolved.- Returns:
- true is expressions are resolved.
-