You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by pa...@apache.org on 2015/06/08 23:15:57 UTC

incubator-groovy git commit: print used exclusions when running Rat

Repository: incubator-groovy
Updated Branches:
  refs/heads/master 698ebbdec -> ee779e34a


print used exclusions when running Rat


Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/ee779e34
Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/ee779e34
Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/ee779e34

Branch: refs/heads/master
Commit: ee779e34a42442dc75ebd0614399c443e3732af5
Parents: 698ebbd
Author: pascalschumacher <pa...@gmx.net>
Authored: Mon Jun 8 23:15:39 2015 +0200
Committer: pascalschumacher <pa...@gmx.net>
Committed: Mon Jun 8 23:15:39 2015 +0200

----------------------------------------------------------------------
 gradle/quality.gradle | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/ee779e34/gradle/quality.gradle
----------------------------------------------------------------------
diff --git a/gradle/quality.gradle b/gradle/quality.gradle
index 2d0b365..29e115d 100644
--- a/gradle/quality.gradle
+++ b/gradle/quality.gradle
@@ -149,12 +149,14 @@ dependencies {
 
 // Standalone rat task - suitable for manually checking license info
 // TODO replace with rat gradle plugin to allow per subproject checking and better exclusion/license specification
+String ratExcludesFilePath = 'config/licensing/rat-excludes.txt'
 task rat(type: JavaExec) {
     main = 'org.apache.rat.Report'
     classpath = files(configurations.rat)
-    args = ['-E', 'config/licensing/rat-excludes.txt', '--dir', '.']
+    args = ['-E', ratExcludesFilePath, '--dir', '.']
     doFirst {
-        println "Runs Apache RAT. Exclusions are defined in config/licensing/rat-excludes.txt file"
+        println "Runing Apache RAT. Exclusions are defined in: $ratExcludesFilePath"
+        println "Using the following exclusions:\n${new File(ratExcludesFilePath).text}"
     }
 }