Author: khmarbaise
Date: Sat Sep 6 18:58:29 2014
New Revision: 1622907
URL: http://svn.apache.org/r1622907
Log:
- Added rat report script.
Added:
maven/plugins/trunk/rat-report.sh (with props)
Added: maven/plugins/trunk/rat-report.sh
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/rat-report.sh?rev=1622907&view=auto
==============================================================================
--- maven/plugins/trunk/rat-report.sh (added)
+++ maven/plugins/trunk/rat-report.sh Sat Sep 6 18:58:29 2014
@@ -0,0 +1,15 @@
+#!/bin/bash
+FOLDERS=`find . -maxdepth 1 -type d -not -path "./.svn" -and -not -path "."`
+RAT_REPORT="mvn org.apache.rat:apache-rat-plugin:0.11:check
-Drat.ignoreErrors=true -Drat.excludeSubProjects=false"
+for i in $FOLDERS; do
+ echo "Checking $i"
+ cd $i
+ $RAT_REPORT >../$i.log
+ cd ..
+done;
+# Printout the reports only first 19 lines which contain the usefull
information.
+head -n19 `find . -maxdepth 3 -type f -name "rat.txt"`
+# Removing report logs.
+for i in $FOLDERS; do
+ rm $i.log
+done;
Propchange: maven/plugins/trunk/rat-report.sh
------------------------------------------------------------------------------
svn:executable = *