Author: olga
Date: Wed Mar 11 01:06:41 2009
New Revision: 752336

URL: http://svn.apache.org/viewvc?rev=752336&view=rev
Log:
PIG-708: implement releaseaudit tart to use rats on pig (gkesavan via
    olgan)

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

Modified: hadoop/pig/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/hadoop/pig/trunk/CHANGES.txt?rev=752336&r1=752335&r2=752336&view=diff
==============================================================================
--- hadoop/pig/trunk/CHANGES.txt (original)
+++ hadoop/pig/trunk/CHANGES.txt Wed Mar 11 01:06:41 2009
@@ -465,3 +465,7 @@
     PIG-699: Implement forrest docs target in Pig Build (gkesavan via olgan)
 
     PIG-706:  Implement ant target to use findbugs on PIG (gkesavan via olgan)
+
+    PIG-708: implement releaseaudit tart to use rats on pig (gkesavan via
+    olgan)
+

Modified: hadoop/pig/trunk/build.xml
URL: 
http://svn.apache.org/viewvc/hadoop/pig/trunk/build.xml?rev=752336&r1=752335&r2=752336&view=diff
==============================================================================
--- hadoop/pig/trunk/build.xml (original)
+++ hadoop/pig/trunk/build.xml Wed Mar 11 01:06:41 2009
@@ -93,9 +93,13 @@
     <property name="src.gen.dot.parser.dir" 
value="${test.src.dir}/org/apache/pig/test/utils/dotGraph/parser" />
     <property name="src.gen.textdata.parser.dir" 
value="${src.gen.dir}/org/apache/pig/data/parser" />
     <property name="javacc.home" value="${basedir}/lib" />
+    
+    <!-- rats properties -->
+    <property name="rats_url" 
value="http://arat.googlecode.com/files/rat-lib-all-0.5.1.jar"; />
+    <property name="rat.reporting.classname" value="rat.Report"/>
 
-       <!-- javadoc properties  -->
-       <property name="javadoc.link.java" 
value="http://java.sun.com/j2se/1.5.0/docs/api/"; />
+    <!-- javadoc properties  -->
+    <property name="javadoc.link.java" 
value="http://java.sun.com/j2se/1.5.0/docs/api/"; />
 
     <!-- ====================================================== -->
     <!-- Stuff needed by all targets                            -->
@@ -498,4 +502,17 @@
        <available property="findbugs.present" 
file="${findbugs.home}/lib/findbugs.jar" />
     </target>
 
+    <!-- ================================================================== -->
+    <!-- Perform audit activities for the release                           -->
+    <!-- ================================================================== -->
+    <target name="get-rats" description="Downloads the release audit tool">
+       <get src="${rats_url}" dest="${lib.dir}/rats.jar" usetimestamp="false" 
/>
+    </target>
+   
+    <target name="releaseaudit" depends="get-rats ,package" 
description="Release Audit activities">
+       <java classname="${rat.reporting.classname}" fork="true" 
classpath="${lib.dir}/rats.jar">
+               <arg value="${build.dir}/${final.name}"/>
+       </java>
+    </target>
+
 </project>


Reply via email to