Class AddSourcesMojo

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

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

    • sources

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

    • AddSourcesMojo

      public AddSourcesMojo()
  • Method Details

    • execute

      public void execute()
      Executes this mojo.
    • addSourcePath

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