Package org.codehaus.mojo.aspectj
Class AjcReportMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.reporting.AbstractMavenReport
-
- org.codehaus.mojo.aspectj.AjcReportMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
,org.apache.maven.reporting.MavenMultiPageReport
,org.apache.maven.reporting.MavenReport
@Mojo(name="aspectj-report", requiresDependencyResolution=COMPILE) public class AjcReportMojo extends org.apache.maven.reporting.AbstractMavenReport
Creates an AspectJ HTML report using theajdoc
tool and format. A Maven 2.0 ajdoc report- Author:
- Kaare Nilsen
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
complianceLevel
Specify compiler compliance setting (1.3 to 1.8, default is 1.5)protected java.lang.String
doctitle
Specifies the title to be placed near the top of the overview summary file.protected java.lang.String
overview
Specifies that javadoc should retrieve the text for the overview documentation from the "source" file specified by path/filename and place it on the Overview page (overview-summary.html).protected boolean
packageScope
Shows only package, protected, and public classes and members.protected boolean
privateScope
Shows all classes and members.protected boolean
protectedScope
Shows only protected and public classes and members.protected boolean
publicScope
Shows only public classes and members.protected boolean
verbose
Provides more detailed messages while javadoc is running.
-
Constructor Summary
Constructors Constructor Description AjcReportMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canGenerateReport()
protected void
executeReport(java.util.Locale locale)
Executes this ajdoc-report generation.protected java.util.List<java.lang.String>
getClasspathDirectories()
java.lang.String
getDescription(java.util.Locale locale)
java.lang.String
getName(java.util.Locale locale)
protected java.lang.String
getOutputDirectory()
get report output directory.java.lang.String
getOutputName()
protected org.apache.maven.project.MavenProject
getProject()
Get the maven project.protected org.apache.maven.doxia.siterenderer.Renderer
getSiteRenderer()
Get the site renderer.protected java.util.List<java.lang.String>
getSourceDirectories()
boolean
isExternalReport()
void
setComplianceLevel(java.lang.String complianceLevel)
Set source compliance levelvoid
setDoctitle(java.lang.String doctitle)
void
setOverview(java.lang.String overview)
void
setPackageScope(boolean packageScope)
void
setPluginArtifacts(java.util.List<org.apache.maven.artifact.Artifact> pluginArtifacts)
void
setPrivateScope(boolean privateScope)
void
setProtectedScope(boolean protectedScope)
void
setPublicScope(boolean publicScope)
void
setVerbose(boolean verbose)
-
Methods inherited from class org.apache.maven.reporting.AbstractMavenReport
closeReport, execute, generate, generate, generate, getCategoryName, getInputEncoding, getOutputEncoding, getReportOutputDirectory, getSink, getSinkFactory, setReportOutputDirectory
-
-
-
-
Field Detail
-
packageScope
@Parameter protected boolean packageScope
Shows only package, protected, and public classes and members.
-
protectedScope
@Parameter protected boolean protectedScope
Shows only protected and public classes and members. This is the default.
-
privateScope
@Parameter protected boolean privateScope
Shows all classes and members.
-
publicScope
@Parameter protected boolean publicScope
Shows only public classes and members.
-
overview
@Parameter protected java.lang.String overview
Specifies that javadoc should retrieve the text for the overview documentation from the "source" file specified by path/filename and place it on the Overview page (overview-summary.html). The path/filename is relative to the ${basedir}. While you can use any name you want for filename and place it anywhere you want for path, a typical thing to do is to name it overview.html and place it in the source tree at the directory that contains the topmost package directories. In this location, no path is needed when documenting packages, since -sourcepath will point to this file. For example, if the source tree for the java.lang package is /src/classes/java/lang/, then you could place the overview file at /src/classes/overview.html. See Real World Example. For information about the file specified by path/filename, see overview comment file.Note that the overview page is created only if you pass into javadoc two or more package names. For further explanation, see HTML Frames.) The title on the overview page is set by -doctitle.
-
doctitle
@Parameter protected java.lang.String doctitle
Specifies the title to be placed near the top of the overview summary file. The title will be placed as a centered, level-one heading directly beneath the upper navigation bar. The title may contain html tags and white space, though if it does, it must be enclosed in quotes. Any internal quotation marks within title may have to be escaped.
-
verbose
@Parameter protected boolean verbose
Provides more detailed messages while javadoc is running. Without the verbose option, messages appear for loading the source files, generating the documentation (one message per source file), and sorting. The verbose option causes the printing of additional messages specifying the number of milliseconds to parse each java source file.
-
complianceLevel
@Parameter(defaultValue="${mojo.java.target}") protected java.lang.String complianceLevel
Specify compiler compliance setting (1.3 to 1.8, default is 1.5)
-
-
Method Detail
-
executeReport
protected void executeReport(java.util.Locale locale) throws org.apache.maven.reporting.MavenReportException
Executes this ajdoc-report generation.- Specified by:
executeReport
in classorg.apache.maven.reporting.AbstractMavenReport
- Throws:
org.apache.maven.reporting.MavenReportException
-
getSourceDirectories
protected java.util.List<java.lang.String> getSourceDirectories()
- Returns:
- list of source directories
-
getOutputDirectory
protected java.lang.String getOutputDirectory()
get report output directory.- Overrides:
getOutputDirectory
in classorg.apache.maven.reporting.AbstractMavenReport
-
getClasspathDirectories
protected java.util.List<java.lang.String> getClasspathDirectories()
- Returns:
- list of classpath directories
-
getOutputName
public java.lang.String getOutputName()
-
getName
public java.lang.String getName(java.util.Locale locale)
-
getDescription
public java.lang.String getDescription(java.util.Locale locale)
-
isExternalReport
public boolean isExternalReport()
- Specified by:
isExternalReport
in interfaceorg.apache.maven.reporting.MavenReport
- Overrides:
isExternalReport
in classorg.apache.maven.reporting.AbstractMavenReport
- See Also:
AbstractMavenReport.isExternalReport()
-
canGenerateReport
public boolean canGenerateReport()
- Specified by:
canGenerateReport
in interfaceorg.apache.maven.reporting.MavenReport
- Overrides:
canGenerateReport
in classorg.apache.maven.reporting.AbstractMavenReport
- See Also:
AbstractMavenReport.canGenerateReport()
-
getSiteRenderer
protected org.apache.maven.doxia.siterenderer.Renderer getSiteRenderer()
Get the site renderer.- Overrides:
getSiteRenderer
in classorg.apache.maven.reporting.AbstractMavenReport
-
getProject
protected org.apache.maven.project.MavenProject getProject()
Get the maven project.- Overrides:
getProject
in classorg.apache.maven.reporting.AbstractMavenReport
-
setOverview
public void setOverview(java.lang.String overview)
-
setDoctitle
public void setDoctitle(java.lang.String doctitle)
-
setPackageScope
public void setPackageScope(boolean packageScope)
-
setPrivateScope
public void setPrivateScope(boolean privateScope)
-
setProtectedScope
public void setProtectedScope(boolean protectedScope)
-
setPublicScope
public void setPublicScope(boolean publicScope)
-
setVerbose
public void setVerbose(boolean verbose)
-
setComplianceLevel
public void setComplianceLevel(java.lang.String complianceLevel)
Set source compliance level- Parameters:
complianceLevel
- compliance level
-
setPluginArtifacts
public void setPluginArtifacts(java.util.List<org.apache.maven.artifact.Artifact> pluginArtifacts)
-
-