Package scala_maven
Class AddSourceMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- scala_maven.AddSourceMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="add-source", executionStrategy="always", defaultPhase=INITIALIZE, requiresDirectInvocation=false, threadSafe=true) public class AddSourceMojo extends org.apache.maven.plugin.AbstractMojoAdd more source directories to the POM.
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.maven.project.MavenProjectprojectThe maven projectprotected java.io.FilesourceDirThe directory in which scala source is foundprotected java.io.FiletestSourceDirThe directory in which testing scala source is foundprotected booleanuseCanonicalPathShould use CanonicalPath to normalize path (true => getCanonicalPath, false => getAbsolutePath)
-
Constructor Summary
Constructors Constructor Description AddSourceMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()
-
-
-
Field Detail
-
project
@Parameter(property="project", required=true, readonly=true) private org.apache.maven.project.MavenProject projectThe maven project
-
sourceDir
@Parameter(defaultValue="${project.build.sourceDirectory}/../scala") protected java.io.File sourceDirThe directory in which scala source is found
-
testSourceDir
@Parameter(defaultValue="${project.build.testSourceDirectory}/../scala") protected java.io.File testSourceDirThe directory in which testing scala source is found
-
useCanonicalPath
@Parameter(property="maven.scala.useCanonicalPath", defaultValue="true") protected boolean useCanonicalPathShould use CanonicalPath to normalize path (true => getCanonicalPath, false => getAbsolutePath)- See Also:
- #50
-
-