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 the
ajdoc
tool and format.
A Maven 2.0 ajdoc report- Author:
- Kaare Nilsen
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
Specify compiler compliance setting (1.3 to 1.8, default is 1.5)protected String
Specifies the title to be placed near the top of the overview summary file.protected String
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
Shows only package, protected, and public classes and members.protected boolean
Shows all classes and members.protected boolean
Shows only protected and public classes and members.protected boolean
Shows only public classes and members.protected boolean
Provides more detailed messages while javadoc is running.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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
protected void
executeReport
(Locale locale) Executes this ajdoc-report generation.getDescription
(Locale locale) protected String
get report output directory.protected org.apache.maven.project.MavenProject
Get the maven project.protected org.apache.maven.doxia.siterenderer.Renderer
Get the site renderer.boolean
void
setComplianceLevel
(String complianceLevel) Set source compliance levelvoid
setDoctitle
(String doctitle) void
setOverview
(String overview) void
setPackageScope
(boolean packageScope) void
setPluginArtifacts
(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
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
packageScope
@Parameter protected boolean packageScopeShows only package, protected, and public classes and members. -
protectedScope
@Parameter protected boolean protectedScopeShows only protected and public classes and members. This is the default. -
privateScope
@Parameter protected boolean privateScopeShows all classes and members. -
publicScope
@Parameter protected boolean publicScopeShows only public classes and members. -
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
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 verboseProvides 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
Specify compiler compliance setting (1.3 to 1.8, default is 1.5)
-
-
Constructor Details
-
AjcReportMojo
public AjcReportMojo()
-
-
Method Details
-
executeReport
Executes this ajdoc-report generation.- Specified by:
executeReport
in classorg.apache.maven.reporting.AbstractMavenReport
- Throws:
org.apache.maven.reporting.MavenReportException
-
getSourceDirectories
- Returns:
- list of source directories
-
getOutputDirectory
get report output directory.- Overrides:
getOutputDirectory
in classorg.apache.maven.reporting.AbstractMavenReport
-
getClasspathDirectories
- Returns:
- list of classpath directories
-
getOutputName
-
getName
-
getDescription
-
isExternalReport
public boolean isExternalReport()- Specified by:
isExternalReport
in interfaceorg.apache.maven.reporting.MavenReport
- Overrides:
isExternalReport
in classorg.apache.maven.reporting.AbstractMavenReport
- See Also:
-
canGenerateReport
public boolean canGenerateReport()- Specified by:
canGenerateReport
in interfaceorg.apache.maven.reporting.MavenReport
- Overrides:
canGenerateReport
in classorg.apache.maven.reporting.AbstractMavenReport
- See Also:
-
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
-
setDoctitle
-
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
Set source compliance level- Parameters:
complianceLevel
- compliance level
-
setPluginArtifacts
-