Package org.codehaus.mojo.buildhelper
Class AddTestResourceMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.buildhelper.AbstractAddResourceMojo
org.codehaus.mojo.buildhelper.AddTestResourceMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="add-test-resource",
defaultPhase=GENERATE_TEST_RESOURCES,
threadSafe=true)
public class AddTestResourceMojo
extends AbstractAddResourceMojo
Add more test resource directories to the POM.
- Since:
- 1.3
- Author:
- Paul Gier
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addResource
(org.apache.maven.model.Resource resource) Add the resource to the project.protected boolean
isSkip()
protected boolean
Methods inherited from class org.codehaus.mojo.buildhelper.AbstractAddResourceMojo
execute, getProject
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
AddTestResourceMojo
public AddTestResourceMojo()
-
-
Method Details
-
addResource
public void addResource(org.apache.maven.model.Resource resource) Add the resource to the project.- Specified by:
addResource
in classAbstractAddResourceMojo
- Parameters:
resource
- the resource to add
-
isSkip
protected boolean isSkip()- Specified by:
isSkip
in classAbstractAddResourceMojo
-
isSkipIfMissing
protected boolean isSkipIfMissing()- Specified by:
isSkipIfMissing
in classAbstractAddResourceMojo
-