org.codehaus.mojo.buildhelper
Class AbstractAddResourceMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.buildhelper.AbstractAddResourceMojo
- All Implemented Interfaces:
- ContextEnabled, Mojo
- Direct Known Subclasses:
- AddResourceMojo, AddTestResourceMojo
public abstract class AbstractAddResourceMojo
- extends AbstractMojo
Abstract Mojo for adding Resources
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractAddResourceMojo
public AbstractAddResourceMojo()
execute
public void execute()
- Main plugin execution
addResource
public abstract void addResource(Resource resource)
- Add the resource to the project.
- Parameters:
resource
- the resource to add
getProject
public MavenProject getProject()
- Get the current project instance.
- Returns:
- the project
Copyright © 2005-2012 Codehaus. All Rights Reserved.