org.codehaus.groovy.maven.plugin.compile
Class AbstractCompileMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.groovy.maven.plugin.MojoSupport
          extended by org.codehaus.groovy.maven.plugin.ProviderMojoSupport
              extended by org.codehaus.groovy.maven.plugin.ComponentMojoSupport
                  extended by org.codehaus.groovy.maven.plugin.CompilerMojoSupport
                      extended by org.codehaus.groovy.maven.plugin.compile.AbstractCompileMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, ClassCompiler.Keys, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
Direct Known Subclasses:
CompileMojo, TestCompileMojo

public abstract class AbstractCompileMojo
extends CompilerMojoSupport
implements ClassCompiler.Keys

Support for compile mojos that generate classes.

Version:
$Id: AbstractCompileMojo.java 13183 2008-08-10 14:15:14Z user57 $
Author:
Jason Dillon

Field Summary
 
Fields inherited from class org.codehaus.groovy.maven.plugin.CompilerMojoSupport
classpath, compileState, sources
 
Fields inherited from class org.codehaus.groovy.maven.plugin.ProviderMojoSupport
pluginArtifactMap
 
Fields inherited from class org.codehaus.groovy.maven.plugin.MojoSupport
artifactFactory, artifactMetadataSource, artifactRepository, artifactResolver, log, project, remoteRepositories
 
Fields inherited from interface org.codehaus.groovy.maven.runtime.ClassCompiler.Keys
ALL, DEBUG, DEFAULT_SCRIPT_EXTENSION, SCRIPT_BASE_CLASSNAME, SOURCE_ENCODING, TARGET_BYTECODE, TOLERANCE, VERBOSE, WARNING_LEVEL
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
protected AbstractCompileMojo()
           
 
Method Summary
protected  void compile(ClassCompiler compiler, org.apache.maven.shared.model.fileset.FileSet[] sources)
           
protected abstract  java.util.Set getForcedCompileSources()
           
protected  void process(Component component)
           
 
Methods inherited from class org.codehaus.groovy.maven.plugin.CompilerMojoSupport
addSourceRoot, getDefaultSources, getExcludesFrom, getIncludesFrom, getOutputDirectory, getSourceRoots, getUserClassspathElements, scanForSources, scanForSources
 
Methods inherited from class org.codehaus.groovy.maven.plugin.ComponentMojoSupport
configure, doExecute, feature, feature
 
Methods inherited from class org.codehaus.groovy.maven.plugin.ProviderMojoSupport
contextualize, getProviderManager, getProviderSelection, provider
 
Methods inherited from class org.codehaus.groovy.maven.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
 

Constructor Detail

AbstractCompileMojo

protected AbstractCompileMojo()
Method Detail

getForcedCompileSources

protected abstract java.util.Set getForcedCompileSources()

process

protected void process(Component component)
                throws java.lang.Exception
Specified by:
process in class ComponentMojoSupport
Throws:
java.lang.Exception

compile

protected void compile(ClassCompiler compiler,
                       org.apache.maven.shared.model.fileset.FileSet[] sources)
                throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2006-2009 Codehaus. All Rights Reserved.