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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanSkip plugin execution.private booleanIf a test resource directory does not exist, do not add it as a root.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResource(org.apache.maven.model.Resource resource) Add the resource to the project.protected booleanisSkip()protected booleanMethods inherited from class AbstractAddResourceMojo
execute, getProjectMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
skipAddTestResource
@Parameter(property="buildhelper.addtestresource.skip", defaultValue="false") private boolean skipAddTestResourceSkip plugin execution.- Since:
- 3.5.0
-
skipAddTestResourceIfMissing
@Parameter(property="buildhelper.addtestresource.skipIfMissing", defaultValue="false") private boolean skipAddTestResourceIfMissingIf a test resource directory does not exist, do not add it as a root.- Since:
- 3.5.0
-
-
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:
addResourcein classAbstractAddResourceMojo- Parameters:
resource- the resource to add
-
isSkip
protected boolean isSkip()- Specified by:
isSkipin classAbstractAddResourceMojo
-
isSkipIfMissing
protected boolean isSkipIfMissing()- Specified by:
isSkipIfMissingin classAbstractAddResourceMojo
-