org.codehaus.mojo.was6.WsStartServerMojo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of was6-maven-plugin Show documentation
Show all versions of was6-maven-plugin Show documentation
Tools for working with IBM WebSphere 6.0.x and 6.1.x. This plugin works along
with an installation of WebSphere Application Server or Process Server -
standalone or ND installation, to provide automated tasks for: generating RMIC stubs,
starting/stopping servers, installing/updating/uninstalling EARs to
application servers, run serviceDeploy and run arbitrary scripts with wsadmin.
package org.codehaus.mojo.was6;
import org.apache.maven.plugin.MojoExecutionException;
import org.dom4j.Document;
/**
* Starts a standalone server instance. This is not used to start a server controlled by DeploymentManager. Therefore,
* this goal is useful for the Base Application Server, and to start the Node Agent and/or DeploymentManager. If you
* wish to start a server managed by the Deployment Manager, use the wsadmin task to execute a scripting command.
*
* @goal wsStartServer
* @author David J. M. Karlsen
*/
public class WsStartServerMojo
extends AbstractServerMojo
{
/**
* Specifies the name of a optional script file to execute during server startup.
*
* @parameter expression="${was6.script}"
*/
private String script;
/**
* {@inheritDoc}
*/
protected void configureBuildScript( Document document )
throws MojoExecutionException
{
super.configureBuildScript( document );
configureTaskAttribute( document, "script", script );
}
/**
* {@inheritDoc}
*/
protected String getTaskName()
{
return "wsStartServer";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy