Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 61f432177c8efa2be69f7adf3f9aae11680b3bdb 1 parent a638839
@matthieumorel matthieumorel authored
View
19 .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
View
7 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
View
BIN  lib/apache-rat-0.8.jar
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.