Apache Rat
  1. Apache Rat
  2. RAT-74

Custom stylesheets and raw XML output from the Maven plugin

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.7
    • Component/s: maven
    • Labels:
      None

      Description

      Currently the RAT Maven plugin only produces the default plain text reports.

      It would be useful if the plugin could be configured to output also the raw XML report or to use a custom stylesheet to render the report.

      1. RAT-74.patch
        4 kB
        Jukka Zitting

        Activity

        Hide
        Stefan Bodewig added a comment -

        patch applied as svn revision 949951

        Thanks!

        Show
        Stefan Bodewig added a comment - patch applied as svn revision 949951 Thanks!
        Hide
        Jukka Zitting added a comment -

        The attached patch adds a "reportStyle" configuration option. The option accepts the following values:

        "plain" - (default) use the default plain text format
        "xml" - output the raw XML report
        "/path/to/style.xslt" - use a custom XSL transformation

        Here's an example configuration:

        <plugin>
        <groupId>org.apache.rat</groupId>
        <artifactId>apache-rat-plugin</artifactId>
        <version>0.7-SNAPSHOT</version>
        <configuration>
        <reportFile>$

        {project.build.directory}

        /rat.xml</reportFile>
        <reportStyle>xml</reportStyle>
        </configuration>
        </plugin>

        Show
        Jukka Zitting added a comment - The attached patch adds a "reportStyle" configuration option. The option accepts the following values: "plain" - (default) use the default plain text format "xml" - output the raw XML report "/path/to/style.xslt" - use a custom XSL transformation Here's an example configuration: <plugin> <groupId>org.apache.rat</groupId> <artifactId>apache-rat-plugin</artifactId> <version>0.7-SNAPSHOT</version> <configuration> <reportFile>$ {project.build.directory} /rat.xml</reportFile> <reportStyle>xml</reportStyle> </configuration> </plugin>

          People

          • Assignee:
            Unassigned
            Reporter:
            Jukka Zitting
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development