org.codehaus.groovy.maven.plugin
Class CompilerMojoSupport
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.groovy.maven.plugin.MojoSupport
org.codehaus.groovy.maven.plugin.ProviderMojoSupport
org.codehaus.groovy.maven.plugin.ComponentMojoSupport
org.codehaus.groovy.maven.plugin.CompilerMojoSupport
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
- Direct Known Subclasses:
- AbstractCompileMojo, AbstractGenerateStubsMojo
public abstract class CompilerMojoSupport
- extends ComponentMojoSupport
Support for compile mojos (class and stub gen).
- Version:
- $Id: CompilerMojoSupport.java 13181 2008-08-10 14:05:55Z user57 $
- Author:
- Jason Dillon
Field Summary |
protected ArtifactItem[] |
classpath
Additional artifacts to add to the classpath (in addition to the classpath
which is picked up from the executing poms configuration). |
protected CompileState |
compileState
|
protected org.apache.maven.shared.model.fileset.FileSet[] |
sources
Source files to be included. |
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Method Summary |
protected void |
addSourceRoot(java.io.File dir)
|
protected abstract org.apache.maven.shared.model.fileset.FileSet[] |
getDefaultSources()
|
protected java.util.Set |
getExcludesFrom(org.apache.maven.shared.model.fileset.FileSet fileSet)
|
protected java.util.Set |
getIncludesFrom(org.apache.maven.shared.model.fileset.FileSet fileSet)
|
protected abstract java.io.File |
getOutputDirectory()
|
protected abstract java.util.List |
getSourceRoots()
|
protected ArtifactItem[] |
getUserClassspathElements()
|
protected java.io.File[] |
scanForSources(org.apache.maven.shared.model.fileset.FileSet fileSet,
org.apache.maven.shared.io.scan.mapping.SourceMapping mapping)
|
protected java.io.File[] |
scanForSources(org.apache.maven.shared.model.fileset.FileSet fileSet,
org.apache.maven.shared.io.scan.mapping.SourceMapping[] mappings)
|
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 |
classpath
protected ArtifactItem[] classpath
- Additional artifacts to add to the classpath (in addition to the classpath
which is picked up from the executing poms configuration).
sources
protected org.apache.maven.shared.model.fileset.FileSet[] sources
- Source files to be included. If not specified, then the default will be used.
compileState
protected CompileState compileState
CompilerMojoSupport
protected CompilerMojoSupport(java.lang.String key)
getOutputDirectory
protected abstract java.io.File getOutputDirectory()
throws java.lang.Exception
- Throws:
java.lang.Exception
getSourceRoots
protected abstract java.util.List getSourceRoots()
addSourceRoot
protected void addSourceRoot(java.io.File dir)
throws java.io.IOException
- Throws:
java.io.IOException
getDefaultSources
protected abstract org.apache.maven.shared.model.fileset.FileSet[] getDefaultSources()
getUserClassspathElements
protected ArtifactItem[] getUserClassspathElements()
- Overrides:
getUserClassspathElements
in class MojoSupport
getIncludesFrom
protected java.util.Set getIncludesFrom(org.apache.maven.shared.model.fileset.FileSet fileSet)
getExcludesFrom
protected java.util.Set getExcludesFrom(org.apache.maven.shared.model.fileset.FileSet fileSet)
scanForSources
protected java.io.File[] scanForSources(org.apache.maven.shared.model.fileset.FileSet fileSet,
org.apache.maven.shared.io.scan.mapping.SourceMapping[] mappings)
throws java.lang.Exception
- Throws:
java.lang.Exception
scanForSources
protected java.io.File[] scanForSources(org.apache.maven.shared.model.fileset.FileSet fileSet,
org.apache.maven.shared.io.scan.mapping.SourceMapping mapping)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2006-2008 Codehaus. All Rights Reserved.