JBoss AS7 Deployment Plugin 7.9.Final

org.jboss.as.plugin.cli
Class ExecuteCommands

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.jboss.as.plugin.common.AbstractServerMojo
          extended by 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

Field Summary
 
Fields inherited from class org.jboss.as.plugin.common.AbstractServerMojo
DEBUG_MESSAGE_NO_CREDS, DEBUG_MESSAGE_NO_ID, DEBUG_MESSAGE_NO_SERVER_SECTION, DEBUG_MESSAGE_NO_SETTINGS_FILE, DEBUG_MESSAGE_POM_HAS_CREDS, DEBUG_MESSAGE_SETTINGS_HAS_CREDS, DEBUG_MESSAGE_SETTINGS_HAS_ID
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
ExecuteCommands()
           
 
Method Summary
 void execute()
           
 String goal()
          The goal of the deployment.
 
Methods inherited from class org.jboss.as.plugin.common.AbstractServerMojo
close, getCallbackHandler, getClient, getHostAddress, getPort, hostname, isDomainServer, isSkip
 
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
 

Constructor Detail

ExecuteCommands

public ExecuteCommands()
Method Detail

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

JBoss AS7 Deployment Plugin 7.9.Final

Copyright © 2016 JBoss by Red Hat. All Rights Reserved.