Class RatCheckMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="check", defaultPhase=VALIDATE, threadSafe=true) public class RatCheckMojo extends AbstractRatMojo
Run Rat to perform a violation check.

This documentation mentions data types for some of the arguments. An explanation of the data types is included in this documentation package.

  • Constructor Details

    • RatCheckMojo

      public RatCheckMojo()
  • Method Details

    • setReportFile

      @Deprecated @Parameter public void setReportFile(File reportFile)
      Deprecated.
      Use 'out' property instead.
      Where to store the report.
    • setReportStyle

      @Deprecated @Parameter(property="rat.outputStyle") public void setReportStyle(String value)
      Deprecated.
      Use setStyleSheet or xml instead.
      Output style of the report. Use "plain" (the default) for a plain text report or "xml" for the raw XML report. Alternatively you can give the path of an XSL transformation that will be applied on the raw XML to produce the report written to the output file.
    • setAddLicenseHeaders

      @Deprecated @Parameter(property="rat.addLicenseHeaders") public void setAddLicenseHeaders(String addLicenseHeaders)
      Deprecated.
      Use <editLicense> and <editOverwrite>.
      Whether to add license headers; possible values are forced, true, and false (default).
    • setCopyrightMessage

      @Deprecated @Parameter(property="rat.copyrightMessage") public void setCopyrightMessage(String copyrightMessage)
      Deprecated.
      Deprecated for removal since 0.17: Use <editCopyright> instead.
      Copyright message to add to license headers.
    • getConfiguration

      protected ReportConfiguration getConfiguration() throws org.apache.maven.plugin.MojoExecutionException
      Overrides:
      getConfiguration in class AbstractRatMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Invoked by Maven to execute the Mojo.
      Throws:
      org.apache.maven.plugin.MojoFailureException - if an error in the plugin configuration was detected.
      org.apache.maven.plugin.MojoExecutionException - if another error occurred while executing the plugin.
    • check

      protected void check(ReportConfiguration config) throws org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoFailureException
    • getRatTxtFile

      public File getRatTxtFile() throws org.apache.maven.plugin.MojoFailureException
      Reads the location of the RAT text file from the Mojo.
      Returns:
      Value of the "reportFile" property.
      Throws:
      org.apache.maven.plugin.MojoFailureException - If no output file was specified.