Package org.codehaus.mojo.buildhelper
Class AddTestSourceMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.codehaus.mojo.buildhelper.AddTestSourceMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="add-test-source", defaultPhase=GENERATE_TEST_SOURCES, threadSafe=true) public class AddTestSourceMojo extends org.apache.maven.plugin.AbstractMojo
Add test source directories to the POM.- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.maven.project.MavenProject
project
private boolean
skipAddTestSource
Skip plugin execution.private boolean
skipAddTestSourceIfMissing
If a directory does not exist, do not add it as a test source root.private java.io.File[]
sources
Additional test source directories.
-
Constructor Summary
Constructors Constructor Description AddTestSourceMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
-
-
-
Field Detail
-
sources
@Parameter(required=true) private java.io.File[] sources
Additional test source directories.- Since:
- 1.0
-
project
@Parameter(readonly=true, defaultValue="${project}") private org.apache.maven.project.MavenProject project
- Since:
- 1.0
-
skipAddTestSource
@Parameter(property="buildhelper.addtestsource.skip", defaultValue="false") private boolean skipAddTestSource
Skip plugin execution.- Since:
- 3.5.0
-
skipAddTestSourceIfMissing
@Parameter(property="buildhelper.addtestsource.skipIfMissing", defaultValue="false") private boolean skipAddTestSourceIfMissing
If a directory does not exist, do not add it as a test source root.- Since:
- 3.5.0
-
-