Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-7017

Improve Apache Rat failure message during build time

Details

    • Improvement
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • None
    • Not applicable
    • build-system
    • None

    Description

      0.4.0 of the plugin embeds the filenames with invalid licenses in the exception message of the failing task so it now appears at the bottom of the build.

      > Task :rat FAILED
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Execution failed for task ':rat'.
      > A failure occurred while executing org.nosphere.apache.rat.RatWork
         > Apache Rat audit failure
           
           *****************************************************
           Summary
           -------
           Generated at: 2019-04-05T14:39:11-07:00
           
           Notes: 5
           Binaries: 123
           Archives: 4
           Standards: 5105
           
           Apache Licensed: 5104
           Generated Documents: 0
           
           JavaDocs are generated, thus a license header is optional.
           Generated files do not require license headers.
           
           1 Unknown Licenses
           
           *****************************************************
           
           Files with unapproved licenses:
           
             /usr/local/google/home/lcwik/git/beam/examples/java/src/main/java/org/apache/beam/examples/WordCount.java
           
           *****************************************************
           ....
      
      

      Attachments

        Issue Links

          Activity

            People

              lcwik Luke Cwik
              lcwik Luke Cwik
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m