|
|||||||||
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.was6.AbstractWas6Mojo
public abstract class AbstractWas6Mojo
Abstract base class for running ws_ant.
Field Summary |
---|
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractWas6Mojo()
|
Method Summary | |
---|---|
protected abstract void |
configureBuildScript(org.dom4j.Document document)
Method to be implemented by subclasses for configuring their task. |
protected void |
configureTaskAttribute(org.dom4j.Document document,
String attributeName,
Object value)
Configures task attributes. |
void |
execute()
|
protected MavenProject |
getMavenProject()
The enclosing project. |
protected Settings |
getSettings()
Maven Settings |
protected org.dom4j.Element |
getTaskElement(org.dom4j.Document document)
Fetches the element describing the IBM task. |
protected abstract String |
getTaskName()
Defines the task name in the build script. |
protected File |
getWasHome()
Returns the location of the was root install point. |
protected File |
getWorkingDirectory()
Plugin working directory. |
protected File |
getWsAntExecutable()
Locates the ws_ant.sh|bat executable. |
protected boolean |
isVerbose()
Specifies if execution should be verbose. |
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 |
---|
public AbstractWas6Mojo()
Method Detail |
---|
protected File getWorkingDirectory()
protected boolean isVerbose()
protected Settings getSettings()
Settings
protected MavenProject getMavenProject()
protected File getWasHome()
protected File getWsAntExecutable() throws MojoExecutionException
MojoExecutionException
protected org.dom4j.Element getTaskElement(org.dom4j.Document document) throws MojoExecutionException
document
- build document.
MojoExecutionException
- should normally never happen.protected void configureTaskAttribute(org.dom4j.Document document, String attributeName, Object value) throws MojoExecutionException
document
- document containing buildscript.attributeName
- attribute to (un)definevalue
- to set, if null attribute with name attributeName will be removed, else defined with this value
MojoExecutionException
- if attribute wasn't defined in build script.protected abstract void configureBuildScript(org.dom4j.Document document) throws MojoExecutionException
document
- the build document.
MojoExecutionException
- if any failure occurs.protected abstract String getTaskName()
public void execute() throws MojoExecutionException, MojoFailureException
MojoExecutionException
MojoFailureException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |