org.glassfish.maven
Class AdminMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.glassfish.maven.AbstractServerMojo
          extended by org.glassfish.maven.AdminMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class AdminMojo
extends AbstractServerMojo

Mojo for running the administration commands.

Author:
bhavanishankar@dev.java.net

Field Summary
protected  java.lang.String[] commands
           
 
Fields inherited from class org.glassfish.maven.AbstractServerMojo
autoDelete, bootstrapProperties, bootstrapPropertiesFile, classLoaders, CONFIG_FILE_URI_PROP_NAME, configFile, configFileReadOnly, containerType, factory, glassfishProperties, glassfishPropertiesFile, INSTALL_ROOT_PROP_NAME, installRoot, INSTANCE_ROOT_PROP_NAME, instanceRoot, localRepository, PLATFORM_KEY, port, ports, project, projectBuilder, remoteRepositories, resolver, serverID, systemProperties, systemPropertiesFile, thisArtifactId
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AdminMojo()
           
 
Method Summary
 void execute()
           
 void runCommand(java.lang.String serverId, java.lang.ClassLoader cl, java.lang.String[] commandLines)
           
 
Methods inherited from class org.glassfish.maven.AbstractServerMojo
cleanupClassLoader, getBootStrapProperties, getClassLoader, getGlassFishProperties
 
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
 

Field Detail

commands

protected java.lang.String[] commands
Constructor Detail

AdminMojo

public AdminMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Specified by:
execute in interface org.apache.maven.plugin.Mojo
Specified by:
execute in class AbstractServerMojo
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

runCommand

public void runCommand(java.lang.String serverId,
                       java.lang.ClassLoader cl,
                       java.lang.String[] commandLines)
                throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2011. All Rights Reserved.