Class AddTestSourcesMojo

  • 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
    • Field Detail

      • 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 Detail

      • AddTestSourcesMojo

        public AddTestSourcesMojo()
    • Method Detail

      • execute

        public void execute()
        Executes this mojo.
      • addTestSourcePath

        protected void addTestSourcePath​(java.lang.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