You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hcatalog-commits@incubator.apache.org by tr...@apache.org on 2013/01/17 23:23:50 UTC

svn commit: r1434959 - in /incubator/hcatalog/branches/branch-0.5: CHANGES.txt build-support/scripts/test.sh build.properties build.xml

Author: travis
Date: Thu Jan 17 23:23:50 2013
New Revision: 1434959

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

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

Modified: incubator/hcatalog/branches/branch-0.5/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/hcatalog/branches/branch-0.5/CHANGES.txt?rev=1434959&r1=1434958&r2=1434959&view=diff
==============================================================================
--- incubator/hcatalog/branches/branch-0.5/CHANGES.txt (original)
+++ incubator/hcatalog/branches/branch-0.5/CHANGES.txt Thu Jan 17 23:23:50 2013
@@ -162,6 +162,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/branches/branch-0.5/build-support/scripts/test.sh
URL: http://svn.apache.org/viewvc/incubator/hcatalog/branches/branch-0.5/build-support/scripts/test.sh?rev=1434959&r1=1434958&r2=1434959&view=diff
==============================================================================
--- incubator/hcatalog/branches/branch-0.5/build-support/scripts/test.sh (original)
+++ incubator/hcatalog/branches/branch-0.5/build-support/scripts/test.sh Thu Jan 17 23:23:50 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/branches/branch-0.5/build.properties
URL: http://svn.apache.org/viewvc/incubator/hcatalog/branches/branch-0.5/build.properties?rev=1434959&r1=1434958&r2=1434959&view=diff
==============================================================================
--- incubator/hcatalog/branches/branch-0.5/build.properties (original)
+++ incubator/hcatalog/branches/branch-0.5/build.properties Thu Jan 17 23:23:50 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/branches/branch-0.5/build.xml
URL: http://svn.apache.org/viewvc/incubator/hcatalog/branches/branch-0.5/build.xml?rev=1434959&r1=1434958&r2=1434959&view=diff
==============================================================================
--- incubator/hcatalog/branches/branch-0.5/build.xml (original)
+++ incubator/hcatalog/branches/branch-0.5/build.xml Thu Jan 17 23:23:50 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>
 
     <!-- ================================================================== -->