org.apache.maven.plugin.plugin
Class AbstractGeneratorMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.plugin.AbstractGeneratorMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- DescriptorGeneratorMojo, XdocGeneratorMojo
public abstract class AbstractGeneratorMojo
- extends org.apache.maven.plugin.AbstractMojo
- Version:
- $Id: AbstractGeneratorMojo.java 489849 2006-12-23 03:48:53Z brett $
- Author:
- Jason van Zyl
Field Summary |
protected java.util.Set |
extractors
The names of extractors to use. |
protected java.lang.String |
goalPrefix
The goal prefix that will appear before the ":". |
protected org.apache.maven.tools.plugin.scanner.MojoScanner |
mojoScanner
The component used for scanning the source tree for mojos. |
protected org.apache.maven.project.MavenProject |
project
The project currently being built. |
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 |
project
protected org.apache.maven.project.MavenProject project
- The project currently being built.
mojoScanner
protected org.apache.maven.tools.plugin.scanner.MojoScanner mojoScanner
- The component used for scanning the source tree for mojos.
goalPrefix
protected java.lang.String goalPrefix
- The goal prefix that will appear before the ":".
extractors
protected java.util.Set extractors
- The names of extractors to use.
If not set, all extractors will be used. If set to an empty extractor name, no extractors
will be used.
Example:
<!-- Use all extractors -->
<extractors/>
<!-- Use no extractors -->
<extractors>
<extractor/>
</extractors>
<!-- Use only bsh extractor -->
<extractors>
<extractor>bsh</extractor>
</extractors>
AbstractGeneratorMojo
public AbstractGeneratorMojo()
getOutputDirectory
protected abstract java.io.File getOutputDirectory()
createGenerator
protected abstract org.apache.maven.tools.plugin.generator.Generator createGenerator()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
Copyright © 2001-2010 Apache Software Foundation. All Rights Reserved.