RAT-179: Tweaking UI/console output.

* Explicitly log that unapproved files were accepted by configuration.
* Use 'license' instead of 'licence'.


git-svn-id: https://svn.apache.org/repos/asf/creadur/rat/trunk@1680405 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/apache-rat-plugin/src/main/java/org/apache/rat/mp/RatCheckMojo.java b/apache-rat-plugin/src/main/java/org/apache/rat/mp/RatCheckMojo.java
index a734e40..fef94fa 100644
--- a/apache-rat-plugin/src/main/java/org/apache/rat/mp/RatCheckMojo.java
+++ b/apache-rat-plugin/src/main/java/org/apache/rat/mp/RatCheckMojo.java
@@ -54,7 +54,6 @@
      * 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.
-     *
      */
     @Parameter(property = "rat.outputStyle", defaultValue = "plain")
     private String reportStyle;
@@ -159,7 +158,17 @@
 
     protected void check(ClaimStatistic statistics)
             throws MojoFailureException {
-        getLog().info("Rat check: Summary of files. Unapproved: " + statistics.getNumUnApproved() + " unknown: " + statistics.getNumUnknown() + " generated: " + statistics.getNumGenerated() + " approved: " + statistics.getNumApproved() + " licence.");
+        if (numUnapprovedLicenses > 0) {
+            getLog().info("You requested to accept " + numUnapprovedLicenses + " files with unapproved licenses.");
+        }
+
+        int numApproved = statistics.getNumApproved();
+        getLog().info("Rat check: Summary over all files. Unapproved: " + statistics.getNumUnApproved() + //
+                ", unknown: " + statistics.getNumUnknown() + //
+                ", generated: " + statistics.getNumGenerated() + //
+                ", approved: " + numApproved + //
+                (numApproved > 0 ? " licenses." : " license."));
+
         if (numUnapprovedLicenses < statistics.getNumUnApproved()) {
             if (consoleOutput) {
                 try {