incubator-hcatalog-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tra...@apache.org
Subject svn commit: r1434958 - in /incubator/hcatalog/trunk: CHANGES.txt build-support/scripts/test.sh build.properties build.xml
Date Thu, 17 Jan 2013 23:22:33 GMT
Author: travis
Date: Thu Jan 17 23:22:33 2013
New Revision: 1434958

URL: http://svn.apache.org/viewvc?rev=1434958&view=rev
Log:
HCATALOG-596 fix releaseaudit and automate running

Modified:
    incubator/hcatalog/trunk/CHANGES.txt
    incubator/hcatalog/trunk/build-support/scripts/test.sh
    incubator/hcatalog/trunk/build.properties
    incubator/hcatalog/trunk/build.xml

Modified: incubator/hcatalog/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/hcatalog/trunk/CHANGES.txt?rev=1434958&r1=1434957&r2=1434958&view=diff
==============================================================================
--- incubator/hcatalog/trunk/CHANGES.txt (original)
+++ incubator/hcatalog/trunk/CHANGES.txt Thu Jan 17 23:22:33 2013
@@ -176,6 +176,8 @@ Release 0.5.0 - Unreleased
   OPTIMIZATIONS
 
   BUG FIXES
+  HCAT-596 fix releaseaudit and automate running (traviscrawford)
+
   HCAT-587 webhcat controller map task takes too much memory (thejas via traviscrawford)
 
   HCAT-594 updated documentation, default.xml, job submission fix (thejas via gates)

Modified: incubator/hcatalog/trunk/build-support/scripts/test.sh
URL: http://svn.apache.org/viewvc/incubator/hcatalog/trunk/build-support/scripts/test.sh?rev=1434958&r1=1434957&r2=1434958&view=diff
==============================================================================
--- incubator/hcatalog/trunk/build-support/scripts/test.sh (original)
+++ incubator/hcatalog/trunk/build-support/scripts/test.sh Thu Jan 17 23:22:33 2013
@@ -55,7 +55,7 @@ run_cmd
 
 # Build and run tests with hadoop20. This must happen afterwards so test results
 # are available for CI to publish.
-cmd='ant -Dtest.junit.output.format=xml clean package test'
+cmd='ant -Dtest.junit.output.format=xml clean package releaseaudit test'
 if [ "${HUDSON_URL}" == "https://builds.apache.org/" ]; then
   cmd="${cmd} mvn-deploy"
 fi

Modified: incubator/hcatalog/trunk/build.properties
URL: http://svn.apache.org/viewvc/incubator/hcatalog/trunk/build.properties?rev=1434958&r1=1434957&r2=1434958&view=diff
==============================================================================
--- incubator/hcatalog/trunk/build.properties (original)
+++ incubator/hcatalog/trunk/build.properties Thu Jan 17 23:22:33 2013
@@ -50,6 +50,8 @@ clover.db.dir=${build.dir}/test/clover/d
 clover.report.dir=${build.dir}/test/clover/reports
 clover.pdf.report.dir=${build.dir}/test/clover/pdf/reports
 
+apache-rat.version=0.8
+
 findbugs.out.dir=${test.dir}/findbugs
 findbugs.exclude.file=${basedir}/src/test/findbugsExcludeFile.xml
 findbugs.report.htmlfile=${findbugs.out.dir}/hcat-findbugs-report.html

Modified: incubator/hcatalog/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/hcatalog/trunk/build.xml?rev=1434958&r1=1434957&r2=1434958&view=diff
==============================================================================
--- incubator/hcatalog/trunk/build.xml (original)
+++ incubator/hcatalog/trunk/build.xml Thu Jan 17 23:22:33 2013
@@ -49,9 +49,6 @@
     <property name="package.buildroot" value="${build.dir}/rpm/hcatalog_package_build_${user.name}"/>
     <property name="package.build.dir" value="${build.dir}/rpm/hcatalog_package_build_${user.name}/BUILD"/>
 
-    <!-- rats properties -->
-    <property name="rat.reporting.classname" value="rat.Report"/>
-
     <target name="init">
         <mkdir dir="${dist.dir}"/>
     </target>
@@ -400,11 +397,20 @@
         <checksum file="${build.dir}/${final.name}.tar.gz" forceOverwrite="yes"/>
     </target>
 
-    <target name="releaseaudit" description="Release Audit activities">
-        <java classname="${rat.reporting.classname}" fork="true">
-            <classpath refid="releaseaudit.classpath"/>
-            <arg value="${basedir}/src"/>
+    <target name="releaseaudit" description="generate a release audit report">
+        <get src="${mvnrepo}/org/apache/rat/apache-rat/${apache-rat.version}/apache-rat-${apache-rat.version}.jar"
+             dest="${basedir}/build/apache-rat-${apache-rat.version}.jar"
+             usetimestamp="true"
+             skipexisting="true"/>
+        <java jar="${basedir}/build/apache-rat-${apache-rat.version}.jar"
+              fork="true"
+              output="${basedir}/build/releaseaudit_report.txt">
+            <arg value="--dir"/>
+            <arg value="${basedir}"/>
+            <arg value="-e"/>
+            <arg value=".*/build/.*"/>
         </java>
+        <echo message="releaseaudit report generated at ${basedir}/build/releaseaudit_report.txt"/>
     </target>
 
     <!-- ================================================================== -->



Mime
View raw message