org.codehaus.gmaven.plugin
Class CompilerMojoSupport
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.gmaven.plugin.MojoSupport
org.codehaus.gmaven.plugin.ProviderMojoSupport
org.codehaus.gmaven.plugin.ComponentMojoSupport
org.codehaus.gmaven.plugin.CompilerMojoSupport
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- AbstractCompileMojo, AbstractGenerateStubsMojo
public abstract class CompilerMojoSupport
- extends ComponentMojoSupport
Support for compile mojos (class and stub gen).
- Version:
- $Id: CompilerMojoSupport.java 8 2009-07-16 09:15:04Z 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 |
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(String key)
getOutputDirectory
protected abstract File getOutputDirectory()
throws Exception
- Throws:
Exception
getSourceRoots
protected abstract List getSourceRoots()
addSourceRoot
protected void addSourceRoot(File dir)
throws IOException
- Throws:
IOException
getDefaultSources
protected abstract org.apache.maven.shared.model.fileset.FileSet[] getDefaultSources()
getUserClassspathElements
protected ArtifactItem[] getUserClassspathElements()
- Overrides:
getUserClassspathElements
in class MojoSupport
getIncludesFrom
protected Set getIncludesFrom(org.apache.maven.shared.model.fileset.FileSet fileSet)
getExcludesFrom
protected Set getExcludesFrom(org.apache.maven.shared.model.fileset.FileSet fileSet)
scanForSources
protected File[] scanForSources(org.apache.maven.shared.model.fileset.FileSet fileSet,
org.apache.maven.shared.io.scan.mapping.SourceMapping[] mappings)
throws Exception
- Throws:
Exception
scanForSources
protected File[] scanForSources(org.apache.maven.shared.model.fileset.FileSet fileSet,
org.apache.maven.shared.io.scan.mapping.SourceMapping mapping)
throws Exception
- Throws:
Exception
Copyright © 2006-2012 Codehaus. All Rights Reserved.