org.codehaus.gmaven.plugin
Class AddSourceMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.gmaven.plugin.MojoSupport
          extended by org.codehaus.gmaven.plugin.AddSourceMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class AddSourceMojo
extends MojoSupport

Add source directories to the Maven project.

Since:
1.5
Version:
$Id$
Author:
Keegan Witt

Field Summary
protected  File defaultSourceDir
          The default directory in which Groovy sources are found
protected  File defaultTestSourceDir
          The default directory in which Groovy test sources are found
protected  org.apache.maven.shared.model.fileset.FileSet[] sources
          Source files to be included.
protected  org.apache.maven.shared.model.fileset.FileSet[] testSources
          Source files to be included.
 
Fields inherited from class org.codehaus.gmaven.plugin.MojoSupport
artifactFactory, artifactMetadataSource, artifactRepository, artifactResolver, log, project, remoteRepositories
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AddSourceMojo()
           
 
Method Summary
protected  void addSourcePath(String path)
           
protected  void addTestSourcePath(String path)
           
 void doExecute()
           
 
Methods inherited from class org.codehaus.gmaven.plugin.MojoSupport
createArtifact, createClassPath, execute, getArtifact, getProjectClasspathElements, getUserClassspathElements, resolveArtifact
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultSourceDir

protected File defaultSourceDir
The default directory in which Groovy sources are found


defaultTestSourceDir

protected File defaultTestSourceDir
The default directory in which Groovy test sources are found


sources

protected org.apache.maven.shared.model.fileset.FileSet[] sources
Source files to be included. If not specified, then the default will be used.


testSources

protected org.apache.maven.shared.model.fileset.FileSet[] testSources
Source files to be included. If not specified, then the default will be used.

Constructor Detail

AddSourceMojo

public AddSourceMojo()
Method Detail

doExecute

public void doExecute()
               throws org.apache.maven.plugin.MojoExecutionException
Specified by:
doExecute in class MojoSupport
Throws:
org.apache.maven.plugin.MojoExecutionException

addSourcePath

protected void addSourcePath(String path)

addTestSourcePath

protected void addTestSourcePath(String path)


Copyright © 2006-2012 Codehaus. All Rights Reserved.