freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ddek...@apache.org
Subject [5/9] incubator-freemarker git commit: Added Rat task to build.xml
Date Thu, 31 Dec 2015 16:33:07 GMT
Added Rat task to build.xml


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

Branch: refs/heads/2.3
Commit: 0cfd13df3f8db1ba7ce4788486b2630a4552ee39
Parents: 8a259d4
Author: ddekany <ddekany@apache.org>
Authored: Thu Dec 31 14:13:19 2015 +0100
Committer: ddekany <ddekany@apache.org>
Committed: Thu Dec 31 14:13:19 2015 +0100

----------------------------------------------------------------------
 build.xml | 17 +++++++++++++++++
 ivy.xml   |  8 +++++++-
 2 files changed, 24 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/0cfd13df/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index 62e2156..416225e 100644
--- a/build.xml
+++ b/build.xml
@@ -23,6 +23,7 @@
   xmlns:javacc="http://javacc.dev.java.net/"
   xmlns:docgen="http://freemarker.org/docgen"
   xmlns:bnd="http://www.aqute.biz/bnd"
+  xmlns:rat="antlib:org.apache.rat.anttasks"
   xmlns:u="http://freemarker.org/util"
 >
 
@@ -1137,6 +1138,22 @@ Proceed? </input>
     </ivy:publish>
     <delete file="build/ivy.xml" />  <!-- ivy:publish makes this -->
   </target>
+  
+  <target name="rat">
+    <ivy:cachepath conf="rat" pathid="ivy.dep" />
+    <taskdef
+      uri="antlib:org.apache.rat.anttasks"
+      resource="org/apache/rat/anttasks/antlib.xml"
+      classpathref="ivy.dep"
+    />  
+    
+    <rat:report reportFile="build/rat-report.txt">
+        <fileset dir="src"/>
+    </rat:report>
+    <echo level="info"><!--
+    -->Rat report was written into build/rat-report.txt<!--
+    --></echo>
+  </target>
 
   <target name="archive" depends=""
     description='Archives project with Git repo into the "archive" directory.'

http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/0cfd13df/ivy.xml
----------------------------------------------------------------------
diff --git a/ivy.xml b/ivy.xml
index 71f1de4..5aaf379 100644
--- a/ivy.xml
+++ b/ivy.xml
@@ -81,7 +81,9 @@
     <conf name="parser" extends="default" description="for generating parser" />
     
     <conf name="manual" description="for generating the manual with Docgen" />
-    
+
+    <conf name="rat" description="for generating the Rat report" />
+
     <conf name="bnd" description="for creating OSGi bundle" />
     
     <conf name="example.servlet" description="servlet-based examples" />
@@ -176,7 +178,11 @@
     <!-- bnd -->
     
     <dependency org="biz.aQute" name="bnd" rev="1.50.0" conf="bnd->default" />
+
+    <!-- Rat -->
     
+    <dependency org="org.apache.rat" name="apache-rat-tasks" rev="0.11" conf="rat->default"
/>
+
     <!-- As the tests *run* on Ant, so it's a provided dependency there. -->
     <exclude org="ant" module="ant" conf="run.test" />
     


Mime
View raw message