org.jboss.as.plugin.cli
Class ExecuteCommands
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.jboss.as.plugin.common.AbstractServerMojo
org.jboss.as.plugin.cli.ExecuteCommands
- All Implemented Interfaces:
- Closeable, org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, ConnectionInfo
@Mojo(name="execute-commands",
threadSafe=true)
public class ExecuteCommands
- extends AbstractServerMojo
Execute commands to the running JBoss Application Server.
Commands should be formatted in the same manor CLI commands are formatted.
Executing commands in a batch will rollback all changes if one command fails.
<execute-commands>
<batch>true</batch>
<commands>
<command>/subsystem=logging/console=CONSOLE:write-attribute(name=level,value=DEBUG)</command>
</commands>
</execute-commands>
- Author:
- James R. Perkins
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExecuteCommands
public ExecuteCommands()
goal
public String goal()
- Description copied from class:
AbstractServerMojo
- The goal of the deployment.
- Specified by:
goal
in class AbstractServerMojo
- Returns:
- the goal of the deployment.
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
Copyright © 2016 JBoss by Red Hat. All Rights Reserved.