Class AddTestSourcesMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="addTestSources", defaultPhase=INITIALIZE, threadSafe=true) public class AddTestSourcesMojo extends AbstractGroovySourcesMojo
This mojo adds Groovy test sources to the project's test sources.
Since:
1.0-beta-3
Author:
Keegan Witt
  • Field Details

    • testSources

      @Parameter protected org.apache.maven.shared.model.fileset.FileSet[] testSources
      The Groovy test source files (relative paths). Default: "${project.basedir}/src/test/groovy/**/*.groovy"
  • Constructor Details

    • AddTestSourcesMojo

      public AddTestSourcesMojo()
  • Method Details

    • execute

      public void execute()
      Executes this mojo.
    • addTestSourcePath

      protected void addTestSourcePath(String path)
      Adds the specified test source path to the project's test compile sources.
      Parameters:
      path - The test source path to add to the project's test compile sources