Package org.wildfly.plugin.cli
Class CliSession
java.lang.Object
org.wildfly.plugin.cli.CliSession
A CLI execution.
- Author:
- jdenise
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the list of CLI commands to execute.String[]
Get the list of JVM options to pass to CLI process.Get the properties files used when executing the CLI.boolean
Get the expression resolution value.Get the list of CLI script files to execute.void
setCommands
(List<String> commands) Set the list of CLI commands to execute.void
setJavaOpts
(String[] javaOpts) Set the list of JVM options to pass to CLI process.void
setPropertiesFiles
(List<File> propertiesFiles) Set the properties files used when executing the CLI.void
setResolveExpressions
(boolean resolveExpressions) By default, the CLI doesn't resolve expressions located in scripts locally.void
setScripts
(List<File> scripts) Set the list of CLI script files to execute.
-
Constructor Details
-
CliSession
public CliSession()
-
-
Method Details
-
setCommands
Set the list of CLI commands to execute.- Parameters:
commands
- List of script CLI commands
-
getCommands
Get the list of CLI commands to execute.- Returns:
- The list of CLI commands.
-
setJavaOpts
Set the list of JVM options to pass to CLI process.- Parameters:
javaOpts
- List of JVM Options.
-
getJavaOpts
Get the list of JVM options to pass to CLI process.- Returns:
- The list of Java Options
-
setScripts
Set the list of CLI script files to execute.- Parameters:
scripts
- List of script file paths.
-
getScripts
Get the list of CLI script files to execute.- Returns:
- The list of file paths.
-
setPropertiesFiles
Set the properties files used when executing the CLI.- Parameters:
propertiesFiles
- List of Path to properties file.
-
getPropertiesFiles
Get the properties files used when executing the CLI.- Returns:
- The properties file path.
-
setResolveExpressions
public void setResolveExpressions(boolean resolveExpressions) By default, the CLI doesn't resolve expressions located in scripts locally. In order to have the expressions resolved locally, set this value to true.- Parameters:
resolveExpressions
- True to resolve locally, false to resolve at server execution time.
-
getResolveExpression
public boolean getResolveExpression()Get the expression resolution value.- Returns:
- The expression resolution value.
-