You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@s2graph.apache.org by st...@apache.org on 2016/01/08 10:24:30 UTC

incubator-s2graph git commit: S2GRAPH-5: Add Apache RAT to valid LICENSE errors.

Repository: incubator-s2graph
Updated Branches:
  refs/heads/master ed11106d7 -> be304d6c9


S2GRAPH-5: Add Apache RAT to valid LICENSE errors.


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

Branch: refs/heads/master
Commit: be304d6c9a6d726993b0ac5fccb7d10afbc322aa
Parents: ed11106
Author: SteamShon <sh...@gmail.com>
Authored: Fri Jan 8 18:22:46 2016 +0900
Committer: SteamShon <sh...@gmail.com>
Committed: Fri Jan 8 18:22:46 2016 +0900

----------------------------------------------------------------------
 .rat-excludes           |  24 ++++++++++++++++++++++++
 CHANGES                 |  17 +++++++++++++++++
 bin/run-rat.sh          |  31 +++++++++++++++++++++++++++++++
 build.sbt               |   7 +++++++
 lib/apache-rat-0.11.jar | Bin 0 -> 1415335 bytes
 5 files changed, 79 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/be304d6c/.rat-excludes
----------------------------------------------------------------------
diff --git a/.rat-excludes b/.rat-excludes
new file mode 100644
index 0000000..370a741
--- /dev/null
+++ b/.rat-excludes
@@ -0,0 +1,24 @@
+rat.out
+.rat-excludes
+Vagrantfile
+docker-compose.yml
+rat.out
+sbt
+sbt.boot.lock
+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
+s2counter_core/target
+s2counter_loader/target
+loader/target
+spark/target

http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/be304d6c/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
new file mode 100644
index 0000000..11a40e3
--- /dev/null
+++ b/CHANGES
@@ -0,0 +1,17 @@
+
+ Change Log 
+
+Release 0.12.1 - unreleased
+
+  NEW FEATURES
+
+  IMPROVEMENT
+
+  BUG FIXES
+
+  TASKS
+ 
+    S2GRAPH-5: Add Apache RAT to valid LICENSE errors. (Committed by DOYUNG YOON).
+
+  SUB TASKS
+

http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/be304d6c/bin/run-rat.sh
----------------------------------------------------------------------
diff --git a/bin/run-rat.sh b/bin/run-rat.sh
new file mode 100644
index 0000000..c22c938
--- /dev/null
+++ b/bin/run-rat.sh
@@ -0,0 +1,31 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+base_dir=$(dirname $0)/..
+rat_excludes_file=$base_dir/.rat-excludes
+
+echo "Base Directory = $base_dir"
+
+if [ -z "$JAVA_HOME" ]; then
+  JAVA="java"
+else
+  JAVA="$JAVA_HOME/bin/java"
+fi
+
+rat_command="$JAVA -jar $base_dir/lib/apache-rat-0.11.jar --dir $base_dir --exclude-file ${rat_excludes_file} -f -a"
+
+echo "Running " $rat_command
+$rat_command > $base_dir/rat.out

http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/be304d6c/build.sbt
----------------------------------------------------------------------
diff --git a/build.sbt b/build.sbt
index bcf92f5..03acb37 100755
--- a/build.sbt
+++ b/build.sbt
@@ -42,3 +42,10 @@ libraryDependencies ++= Seq(
   "com.github.danielwegener" % "logback-kafka-appender" % "0.0.3",
   "org.json4s" %% "json4s-native" % "3.2.11" % Test
 )
+
+
+lazy val runRatTask = taskKey[Unit]("Runs Apache rat on S2Graph")
+
+runRatTask := {
+  "sh bin/run-rat.sh" !
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/be304d6c/lib/apache-rat-0.11.jar
----------------------------------------------------------------------
diff --git a/lib/apache-rat-0.11.jar b/lib/apache-rat-0.11.jar
new file mode 100644
index 0000000..1bce767
Binary files /dev/null and b/lib/apache-rat-0.11.jar differ