|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.jboss.AbstractJBossServerMojo
public abstract class AbstractJBossServerMojo
This class provides the general functionality for interacting with a local JBoss server.
Field Summary | |
---|---|
protected File |
jbossHome
The location of JBoss Home. |
protected String |
serverName
The name of the configuration profile to use when starting the server. |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractJBossServerMojo()
|
Method Summary | |
---|---|
protected void |
checkConfig()
Check that JBOSS_HOME is correctly configured. |
String |
getPassword()
Get the password configured in Maven settings.xml |
String |
getUsername()
Get the username configured in the Maven settings.xml |
protected void |
launch(String commandName,
String options)
Call the JBoss startup or shutdown script. |
protected void |
launchUnixScript(File commandFile,
String options)
Launch a Unix shell script |
protected void |
launchWindowsBatch(File commandFile,
String options)
Launch a batch file in Windows |
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 |
Methods inherited from interface org.apache.maven.plugin.Mojo |
---|
execute |
Field Detail |
---|
protected File jbossHome
protected String serverName
Constructor Detail |
---|
public AbstractJBossServerMojo()
Method Detail |
---|
protected void checkConfig() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void launch(String commandName, String options) throws org.apache.maven.plugin.MojoExecutionException
commandName
- - The name of the command to runoptions
- - Space separated command line parameters
org.apache.maven.plugin.MojoExecutionException
protected void launchWindowsBatch(File commandFile, String options) throws IOException
commandFile
- options
- - Space separated command line parameters
IOException
protected void launchUnixScript(File commandFile, String options) throws IOException
commandFile
- options
- - Space separated command line parameters
IOException
public String getUsername() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
- if the server is not configured in settings.xmlpublic String getPassword() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
- if the server is not configured in settings.xml
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |