org.kohsuke.stapler
Class TaglibDocMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.kohsuke.stapler.TaglibDocMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.apache.maven.reporting.MavenReport

public class TaglibDocMojo
extends org.apache.maven.plugin.AbstractMojo
implements org.apache.maven.reporting.MavenReport

Scans Jelly tag libraries from tag files, and generate taglib.xml compatible with maven-jellydoc-plugin

For productive debugging of this mojo, run "mvn site:run" with debugger. Every request will trigger a whole rendering, and you can do hot-swap of byte code for changes.

Author:
Kohsuke Kawaguchi

Field Summary
protected  org.apache.maven.project.MavenProject project
          The Maven Project Object
 
Fields inherited from interface org.apache.maven.reporting.MavenReport
CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLE
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
TaglibDocMojo()
           
 
Method Summary
 boolean canGenerateReport()
           
 void execute()
           
 void generate(org.codehaus.doxia.sink.Sink sink, Locale locale)
           
 String getCategoryName()
           
 String getDescription(Locale locale)
           
 String getName(Locale locale)
           
 String getOutputName()
           
 File getReportOutputDirectory()
           
 boolean isExternalReport()
           
 void setReportOutputDirectory(File outputDirectory)
           
 
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

project

protected org.apache.maven.project.MavenProject project
The Maven Project Object

Constructor Detail

TaglibDocMojo

public TaglibDocMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Specified by:
execute in interface org.apache.maven.plugin.Mojo
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

generate

public void generate(org.codehaus.doxia.sink.Sink sink,
                     Locale locale)
              throws org.apache.maven.reporting.MavenReportException
Specified by:
generate in interface org.apache.maven.reporting.MavenReport
Throws:
org.apache.maven.reporting.MavenReportException

getOutputName

public String getOutputName()
Specified by:
getOutputName in interface org.apache.maven.reporting.MavenReport

getName

public String getName(Locale locale)
Specified by:
getName in interface org.apache.maven.reporting.MavenReport

getCategoryName

public String getCategoryName()
Specified by:
getCategoryName in interface org.apache.maven.reporting.MavenReport

getDescription

public String getDescription(Locale locale)
Specified by:
getDescription in interface org.apache.maven.reporting.MavenReport

setReportOutputDirectory

public void setReportOutputDirectory(File outputDirectory)
Specified by:
setReportOutputDirectory in interface org.apache.maven.reporting.MavenReport

getReportOutputDirectory

public File getReportOutputDirectory()
Specified by:
getReportOutputDirectory in interface org.apache.maven.reporting.MavenReport

isExternalReport

public boolean isExternalReport()
Specified by:
isExternalReport in interface org.apache.maven.reporting.MavenReport

canGenerateReport

public boolean canGenerateReport()
Specified by:
canGenerateReport in interface org.apache.maven.reporting.MavenReport


Copyright © 2012. All Rights Reserved.