org.codehaus.gmaven.plugin
Class CompilerMojoSupport

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.gmaven.plugin.MojoSupport
          extended by org.codehaus.gmaven.plugin.ProviderMojoSupport
              extended by org.codehaus.gmaven.plugin.ComponentMojoSupport
                  extended by 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 class org.codehaus.gmaven.plugin.ProviderMojoSupport
pluginArtifactMap
 
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
protected CompilerMojoSupport(String key)
           
 
Method Summary
protected  void addSourceRoot(File dir)
           
protected abstract  org.apache.maven.shared.model.fileset.FileSet[] getDefaultSources()
           
protected  Set getExcludesFrom(org.apache.maven.shared.model.fileset.FileSet fileSet)
           
protected  Set getIncludesFrom(org.apache.maven.shared.model.fileset.FileSet fileSet)
           
protected abstract  File getOutputDirectory()
           
protected abstract  List getSourceRoots()
           
protected  ArtifactItem[] getUserClassspathElements()
           
protected  File[] scanForSources(org.apache.maven.shared.model.fileset.FileSet fileSet, org.apache.maven.shared.io.scan.mapping.SourceMapping mapping)
           
protected  File[] scanForSources(org.apache.maven.shared.model.fileset.FileSet fileSet, org.apache.maven.shared.io.scan.mapping.SourceMapping[] mappings)
           
 
Methods inherited from class org.codehaus.gmaven.plugin.ComponentMojoSupport
configure, doExecute, feature, feature, process
 
Methods inherited from class org.codehaus.gmaven.plugin.ProviderMojoSupport
detectCompatibleProvider, getProviderManager, getProviderSelection, provider
 
Methods inherited from class org.codehaus.gmaven.plugin.MojoSupport
createArtifact, createClassPath, execute, getArtifact, getProjectClasspathElements, 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

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
Constructor Detail

CompilerMojoSupport

protected CompilerMojoSupport(String key)
Method Detail

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.