org.apache.maven.plugin.plugin
Class DescriptorGeneratorMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.plugin.AbstractGeneratorMojo
          extended by org.apache.maven.plugin.plugin.DescriptorGeneratorMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class DescriptorGeneratorMojo
extends AbstractGeneratorMojo

Generate a plugin descriptor.
Note: Phase is after the "compilation" of any scripts.

Since:
2.0
Version:
$Id: DescriptorGeneratorMojo.java 685859 2008-08-14 11:35:08Z vsiveton $
Author:
Jason van Zyl

Field Summary
protected  java.io.File outputDirectory
          The directory where the generated plugin.xml file will be put.
 
Fields inherited from class org.apache.maven.plugin.plugin.AbstractGeneratorMojo
extractors, goalPrefix, mojoScanner, project
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
DescriptorGeneratorMojo()
           
 
Method Summary
protected  Generator createGenerator()
          
protected  java.io.File getOutputDirectory()
          
 
Methods inherited from class org.apache.maven.plugin.plugin.AbstractGeneratorMojo
execute
 
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

outputDirectory

protected java.io.File outputDirectory
The directory where the generated plugin.xml file will be put.

Constructor Detail

DescriptorGeneratorMojo

public DescriptorGeneratorMojo()
Method Detail

getOutputDirectory

protected java.io.File getOutputDirectory()

Specified by:
getOutputDirectory in class AbstractGeneratorMojo
Returns:
the output directory where files will be generated.

createGenerator

protected Generator createGenerator()

Specified by:
createGenerator in class AbstractGeneratorMojo
Returns:
the wanted Generator implementation.


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.