S2GRAPH-5: change .rat-excludes and refactor run-rat.sh

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

Branch: refs/heads/S2GRAPH-5
Commit: d24176a62ae5ee4da3b10be5a67b4c572472618e
Parents: 7478cf9
Author: SteamShon <[email protected]>
Authored: Mon Dec 28 12:03:52 2015 +0900
Committer: SteamShon <[email protected]>
Committed: Mon Dec 28 12:12:04 2015 +0900

----------------------------------------------------------------------
 .rat-excludes  | 9 ++++++++-
 bin/run-rat.sh | 7 +------
 2 files changed, 9 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/d24176a6/.rat-excludes
----------------------------------------------------------------------
diff --git a/.rat-excludes b/.rat-excludes
index 54bc33a..370a741 100644
--- a/.rat-excludes
+++ b/.rat-excludes
@@ -1,13 +1,20 @@
 rat.out
+.rat-excludes
+Vagrantfile
+docker-compose.yml
+rat.out
 sbt
 sbt.boot.lock
-README*
+README.md
+s2core/README.md
 .gitignore
 .git
 .svn
 logs
 project
 target
+lib/apache-rat-0.11.jar
+s2core/lib
 s2rest_play/logs
 s2rest_play/target
 s2rest_play/project

http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/d24176a6/bin/run-rat.sh
----------------------------------------------------------------------
diff --git a/bin/run-rat.sh b/bin/run-rat.sh
index aff62fb..66cca2b 100644
--- a/bin/run-rat.sh
+++ b/bin/run-rat.sh
@@ -25,12 +25,7 @@ else
   JAVA="$JAVA_HOME/bin/java"
 fi
 
-rat_command="$JAVA -jar $base_dir/lib/apache-rat-0.11.jar --dir $base_dir "
-
-for f in $(cat $rat_excludes_file);
-do
-  rat_command="${rat_command} -e $f"  
-done
+rat_command="$JAVA -jar $base_dir/lib/apache-rat-0.11.jar --dir $base_dir 
--exclude-file ${rat_excludes_file}"
 
 echo "Running " $rat_command
 $rat_command > $base_dir/rat.out

Reply via email to