You are viewing a plain text version of this content. The canonical link for it is here.
Posted to s4-commits@incubator.apache.org by mm...@apache.org on 2013/02/26 14:00:22 UTC

git commit: S4-97 Add rat task for running Apache RAT on S4 sources

Updated Branches:
  refs/heads/S4-97 [created] 61f432177


S4-97 Add rat task for running Apache RAT on S4 sources


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

Branch: refs/heads/S4-97
Commit: 61f432177c8efa2be69f7adf3f9aae11680b3bdb
Parents: a638839
Author: Matthieu Morel <mm...@apache.org>
Authored: Tue Feb 26 14:44:26 2013 +0100
Committer: Matthieu Morel <mm...@apache.org>
Committed: Tue Feb 26 14:59:35 2013 +0100

----------------------------------------------------------------------
 .rat-excludes          |   19 +++++++++++++++++++
 build.gradle           |    7 +++++++
 lib/apache-rat-0.8.jar |  Bin 0 -> 1165578 bytes
 3 files changed, 26 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-s4/blob/61f43217/.rat-excludes
----------------------------------------------------------------------
diff --git a/.rat-excludes b/.rat-excludes
new file mode 100644
index 0000000..fda2300
--- /dev/null
+++ b/.rat-excludes
@@ -0,0 +1,19 @@
+.rat-excludes
+rat.out
+README*
+.gitignore
+.git
+target
+website
+MANIFEST.MF
+tmp
+.classpath
+.project
+build
+newApp.README
+RELEASE_NOTES.html
+README.md
+# note: pattern with * don't seem to work, even when properly escaped
+logback.xml
+s4-checkstyle.xml
+s4-eclipse-format.xml
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-s4/blob/61f43217/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index b36a770..3193075 100644
--- a/build.gradle
+++ b/build.gradle
@@ -292,6 +292,13 @@ task srcDist(dependsOn: ["javadoc"], type: Zip) {
     into (baseName+'-'+version+'-'+classifier)
 }
 
+task rat(type: JavaExec) {
+	print("Runs Apache RAT. Exclusions are defined in .rat-excludes file") 
+    main = 'org.apache.rat.Report'
+    classpath = files ('lib/apache-rat-0.8.jar')
+    args = ['-E', '.rat-excludes', '--dir', '.']
+    
+}
 
 task clean << {
     delete buildDir

http://git-wip-us.apache.org/repos/asf/incubator-s4/blob/61f43217/lib/apache-rat-0.8.jar
----------------------------------------------------------------------
diff --git a/lib/apache-rat-0.8.jar b/lib/apache-rat-0.8.jar
new file mode 100644
index 0000000..bdc4372
Binary files /dev/null and b/lib/apache-rat-0.8.jar differ