Package org.codehaus.mojo.buildhelper
Class AbstractAddResourceMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.codehaus.mojo.buildhelper.AbstractAddResourceMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
AddResourceMojo,AddTestResourceMojo
public abstract class AbstractAddResourceMojo extends org.apache.maven.plugin.AbstractMojoAbstract Mojo for adding Resources
-
-
Constructor Summary
Constructors Constructor Description AbstractAddResourceMojo()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidaddResource(org.apache.maven.model.Resource resource)Add the resource to the project.voidexecute()Main plugin executionorg.apache.maven.project.MavenProjectgetProject()Get the current project instance.protected abstract booleanisSkip()protected abstract booleanisSkipIfMissing()
-
-
-
Method Detail
-
execute
public void execute()
Main plugin execution
-
isSkipIfMissing
protected abstract boolean isSkipIfMissing()
-
isSkip
protected abstract boolean isSkip()
-
addResource
public abstract void addResource(org.apache.maven.model.Resource resource)
Add the resource to the project.- Parameters:
resource- the resource to add
-
getProject
public org.apache.maven.project.MavenProject getProject()
Get the current project instance.- Returns:
- the project
-
-