public abstract class AbstractRatMojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected boolean |
skip
Will skip the plugin execution, e.g. for technical builds that do not take license compliance into account.
|
Constructor and Description |
---|
AbstractRatMojo() |
Modifier and Type | Method and Description |
---|---|
protected String |
createReport(InputStream styleSheet)
Creates the report as a string.
|
protected ClaimStatistic |
createReport(Writer out,
InputStream style)
Writes the report to the given stream.
|
protected ReportConfiguration |
getConfiguration() |
protected org.apache.maven.project.MavenProject |
getProject() |
protected IReportable |
getResources()
Creates an iterator over the files to check.
|
getLog, getPluginContext, setLog, setPluginContext
@Parameter(property="rat.skip", defaultValue="false") protected boolean skip
protected org.apache.maven.project.MavenProject getProject()
protected IReportable getResources() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
- in case of errors. I/O errors result in UndeclaredThrowableExceptions.protected String createReport(InputStream styleSheet) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
styleSheet
- The style sheet to use when formatting the reportorg.apache.maven.plugin.MojoFailureException
- An error in the plugin configuration was detected.org.apache.maven.plugin.MojoExecutionException
- An error occurred while creating the report.protected ClaimStatistic createReport(Writer out, InputStream style) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
out
- The target writer, to which the report is being written.style
- The stylesheet to use, or null
for raw XMLorg.apache.maven.plugin.MojoFailureException
- An error in the plugin configuration was detected.org.apache.maven.plugin.MojoExecutionException
- Another error occurred while creating the report.protected ReportConfiguration getConfiguration() throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.