public abstract class AbstractRatMojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected File |
basedir
The base directory, in which to search for files.
|
static String[] |
ECLIPSE_DEFAULT_EXCLUDES
The Eclipse specific default excludes.
|
static String[] |
IDEA_DEFAULT_EXCLUDES
The IDEA specific default excludes.
|
static String[] |
MAVEN_DEFAULT_EXCLUDES
The Maven specific default excludes.
|
Constructor and Description |
---|
AbstractRatMojo() |
Modifier and Type | Method and Description |
---|---|
protected ClaimStatistic |
createReport(Writer out,
InputStream style)
Writes the report to the given stream.
|
protected ReportConfiguration |
getConfiguration() |
protected IHeaderMatcher[] |
getLicenseMatchers()
Returns the set of
header matchers to use. |
protected org.apache.maven.project.MavenProject |
getProject()
Returns the Maven project.
|
protected IReportable |
getResources()
Creates an iterator over the files to check.
|
getLog, getPluginContext, setLog, setPluginContext
public static final String[] MAVEN_DEFAULT_EXCLUDES
public static final String[] ECLIPSE_DEFAULT_EXCLUDES
public static final String[] IDEA_DEFAULT_EXCLUDES
@Parameter(property="rat.basedir", defaultValue="${basedir}", required=true) protected File basedir
protected org.apache.maven.project.MavenProject getProject()
protected IHeaderMatcher[] getLicenseMatchers() throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
header matchers
to use.org.apache.maven.plugin.MojoFailureException
- An error in the plugin configuration was detected.org.apache.maven.plugin.MojoExecutionException
- An error occurred while calculating the result.protected IReportable getResources()
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–2013 Apache Software Foundation. All rights reserved.