hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ni...@apache.org
Subject svn commit: r612957 - in /lucene/hadoop/trunk: CHANGES.txt build.xml
Date Thu, 17 Jan 2008 20:02:55 GMT
Author: nigel
Date: Thu Jan 17 12:02:54 2008
New Revision: 612957

URL: http://svn.apache.org/viewvc?rev=612957&view=rev
Log:
HADOOP-2509. Add Ant target for Rat report.  Contributed by Hrishikesh

Modified:
    lucene/hadoop/trunk/CHANGES.txt
    lucene/hadoop/trunk/build.xml

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?rev=612957&r1=612956&r2=612957&view=diff
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Thu Jan 17 12:02:54 2008
@@ -263,6 +263,9 @@
     HADOOP-2298. Add Ant target for a binary-only distribution.
     (Hrishikesh via nigel)
 
+    HADOOP-2509. Add Ant target for Rat report (Apache license header
+    reports).  (Hrishikesh via nigel)
+
   OPTIMIZATIONS
 
     HADOOP-1898.  Release the lock protecting the last time of the last stack

Modified: lucene/hadoop/trunk/build.xml
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/build.xml?rev=612957&r1=612956&r2=612957&view=diff
==============================================================================
--- lucene/hadoop/trunk/build.xml (original)
+++ lucene/hadoop/trunk/build.xml Thu Jan 17 12:02:54 2008
@@ -94,7 +94,10 @@
   <property name="clover.db.dir" location="${build.dir}/test/clover/db"/>
   <property name="clover.report.dir" location="${build.dir}/test/clover/reports"/>
 
+  <property name="rat.reporting.classname" value="rat.Report"/>
+
   <available property="clover.present" classname="com.cenqua.clover.tasks.CloverReportTask"
/>
+
   <!-- check if clover reports should be generated -->
   <condition property="clover.enabled">
     <and>
@@ -130,6 +133,9 @@
     <pathelement location="${build.dir}"/>
   </path>
 
+  <!-- properties dependent on the items defined above. -->
+  <available classname="${rat.reporting.classname}" classpathref="classpath" property="rat.present"
value="true"/>
+
   <!-- ====================================================== -->
   <!-- Macro definitions                                      -->
   <!-- ====================================================== -->
@@ -798,6 +804,17 @@
         </tarfileset>
       </param.listofitems>
     </macro_tar>
+  </target>
+
+  <!-- ================================================================== -->
+  <!-- Perform audit activities for the release                           -->
+  <!-- ================================================================== -->
+  <target name="releaseaudit" depends="package" description="Release Audit activities">
+    <fail unless="rat.present" message="Failed to load class [${rat.reporting.classname}].
Download the latest rat jar from [http://code.google.com/p/arat] and copy it to [${lib.dir}].
Typically the file name will be of format rat-x.y.z.jar"/>
+    <java classname="${rat.reporting.classname}" fork="true">
+      <classpath refid="classpath"/>
+      <arg value="${build.dir}/${final.name}"/>
+    </java>
   </target>
 
   <!-- ================================================================== -->



Mime
View raw message