org.codehaus.mojo.jboss.packaging
Class AbstractESBMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.jboss.packaging.AbstractPackagingMojo
          extended by org.codehaus.mojo.jboss.packaging.AbstractESBMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
ESBExplodedMojo, ESBMojo

public abstract class AbstractESBMojo
extends AbstractPackagingMojo

Base class for building a JBoss ESB archive.

Author:
Kevin Conner

Field Summary
 
Fields inherited from class org.codehaus.mojo.jboss.packaging.AbstractPackagingMojo
deploymentDescriptorFile
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractESBMojo()
           
 
Method Summary
protected  void buildSpecificPackaging(Set excludes)
          Perform any packaging specific to this type.
 String getArtifactType()
          Get the type of the artifact.
 String getDeploymentDescriptorFilename()
          Get the name of the deployment descriptor file.
 
Methods inherited from class org.codehaus.mojo.jboss.packaging.AbstractPackagingMojo
buildExplodedPackaging, buildExplodedPackaging, getAlternateDeploymentDescriptorFilenames, getArchiveName, getOutputDirectory, getPackagingDirectory, getProject, performPackaging
 
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
 

Constructor Detail

AbstractESBMojo

public AbstractESBMojo()
Method Detail

buildSpecificPackaging

protected void buildSpecificPackaging(Set excludes)
                               throws org.apache.maven.plugin.MojoExecutionException,
                                      org.apache.maven.plugin.MojoFailureException,
                                      IOException
Perform any packaging specific to this type.

Overrides:
buildSpecificPackaging in class AbstractPackagingMojo
Parameters:
excludes - The exclude list.
Throws:
org.apache.maven.plugin.MojoExecutionException - For plugin failures.
org.apache.maven.plugin.MojoFailureException - For unexpected plugin failures.
IOException - For exceptions during IO operations.

getDeploymentDescriptorFilename

public String getDeploymentDescriptorFilename()
Get the name of the deployment descriptor file. Sublcasses must override this method and provide the proper name for their type of archive packaging

Specified by:
getDeploymentDescriptorFilename in class AbstractPackagingMojo
Returns:
deployment descriptor file name, sans path

getArtifactType

public String getArtifactType()
Get the type of the artifact.

Specified by:
getArtifactType in class AbstractPackagingMojo
Returns:
The type of the generated artifact.


Copyright © 2006-2011 Codehaus. All Rights Reserved.