org.codehaus.mojo.buildhelper
Class AbstractAddResourceMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.buildhelper.AbstractAddResourceMojo
All Implemented Interfaces:
ContextEnabled, Mojo
Direct Known Subclasses:
AddResourceMojo, AddTestResourceMojo

public abstract class AbstractAddResourceMojo
extends AbstractMojo


Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractAddResourceMojo()
           
 
Method Summary
abstract  void addResource(org.apache.maven.model.Resource resource)
          Add the resource to the project.
 void execute()
          Main plugin execution
 MavenProject getProject()
          Get the current project instance.
 
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

AbstractAddResourceMojo

public AbstractAddResourceMojo()
Method Detail

execute

public void execute()
             throws MojoExecutionException
Main plugin execution

Throws:
MojoExecutionException

addResource

public abstract void addResource(org.apache.maven.model.Resource resource)
Add the resource to the project.

Parameters:
resource -

getProject

public MavenProject getProject()
Get the current project instance.

Returns:
the project


Copyright © 2005-2011 Codehaus. All Rights Reserved.