incubator-hcatalog-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r1135311 - in /incubator/hcatalog/trunk: CHANGES.txt build.xml ivy.xml ivy/libraries.properties
Date Mon, 13 Jun 2011 21:59:24 GMT
Author: gates
Date: Mon Jun 13 21:59:24 2011
New Revision: 1135311

URL: http://svn.apache.org/viewvc?rev=1135311&view=rev
Log:
HCATALOG-44 Add a releaseaudit target to build.xml

Modified:
    incubator/hcatalog/trunk/CHANGES.txt
    incubator/hcatalog/trunk/build.xml
    incubator/hcatalog/trunk/ivy.xml
    incubator/hcatalog/trunk/ivy/libraries.properties

Modified: incubator/hcatalog/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/hcatalog/trunk/CHANGES.txt?rev=1135311&r1=1135310&r2=1135311&view=diff
==============================================================================
--- incubator/hcatalog/trunk/CHANGES.txt (original)
+++ incubator/hcatalog/trunk/CHANGES.txt Mon Jun 13 21:59:24 2011
@@ -12,6 +12,7 @@ Trunk (unreleased changes)
     (Krishna Kumar via macyang)
     
   IMPROVEMENTS
+    HCAT-44. Add a releaseaudit target to build.xml (gates)
 
     HCAT-40. Remove dependencies from the HCatalog client jar (macyang)
 

Modified: incubator/hcatalog/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/hcatalog/trunk/build.xml?rev=1135311&r1=1135310&r2=1135311&view=diff
==============================================================================
--- incubator/hcatalog/trunk/build.xml (original)
+++ incubator/hcatalog/trunk/build.xml Mon Jun 13 21:59:24 2011
@@ -84,7 +84,10 @@
   <property name="ivy.lib.dir" location="${build.ivy.lib.dir}/${ant.project.name}"/>
   <property name="build.ivy.report.dir" location="${build.ivy.dir}/report" />
 
-    <!--this is the naming policy for artifacts we want pulled down-->
+  <!-- rats properties -->
+  <property name="rat.reporting.classname" value="rat.Report"/>
+
+  <!--this is the naming policy for artifacts we want pulled down-->
   <property name="ivy.artifact.retrieve.pattern" value="${ant.project.name}/[artifact]-[revision](-[classifier]).[ext]"/>
 
   <!-- Classpaths for various builds -->
@@ -194,6 +197,13 @@
     <ivy:cachepath pathid="compile.classpath" conf="common"/>     
   </target>
 
+  <target name="ivy-releaseaudit" depends="ivy-init" description="Resolve, Retrieve Ivy-managed
artifacts for releaseaudit configuration">
+    <ivy:resolve settingsRef="${ant.project.name}.ivy.settings" conf="releaseaudit"/>
+    <ivy:retrieve settingsRef="${ant.project.name}.ivy.settings"
+      pattern="${build.ivy.lib.dir}/${ivy.artifact.retrieve.pattern}" conf="releaseaudit"/>
+    <ivy:cachepath pathid="releaseaudit.classpath" conf="releaseaudit"/>
+  </target>
+
   <target name="init" depends="ivy-compile" >
     <mkdir dir="${dist.dir}" />
     <mkdir dir="${build.classes}" />
@@ -511,6 +521,13 @@
 
     </target>
 
+    <target name="releaseaudit" depends="ivy-releaseaudit, package" description="Release
Audit activities">
+      <java classname="${rat.reporting.classname}" fork="true">
+        <classpath refid="releaseaudit.classpath"/>
+        <arg value="${build.dir}/${final.name}"/>
+      </java>
+    </target>
+
     <!-- ================================================================== -->
     <!-- Make release tarball                                               -->
     <!-- ================================================================== -->

Modified: incubator/hcatalog/trunk/ivy.xml
URL: http://svn.apache.org/viewvc/incubator/hcatalog/trunk/ivy.xml?rev=1135311&r1=1135310&r2=1135311&view=diff
==============================================================================
--- incubator/hcatalog/trunk/ivy.xml (original)
+++ incubator/hcatalog/trunk/ivy.xml Mon Jun 13 21:59:24 2011
@@ -33,6 +33,7 @@
             extends="runtime"
             description="artifacts needed to compile/test the application"/>
         <conf name="test" visibility="private" extends="runtime"/>
+        <conf name="releaseaudit" visibility="private"/>
     </configurations>
     <dependencies>
         <dependency org="org.apache.pig" name="pig" rev="${pig.version}"
@@ -44,7 +45,8 @@
           conf="common->master"/>
           -->
         <dependency org="javax.jms" name="jms" rev="${jms.version}" conf="common->master"
/>
- <dependency org="org.apache.activemq" name="activemq-core" rev="${activemq.version}"
conf="common->master" />
-<dependency org="javax.management.j2ee" name="management-api" rev="${javax-mgmt.version}"
conf="common->master" /> 
+        <dependency org="org.apache.activemq" name="activemq-core" rev="${activemq.version}"
conf="common->master" />
+        <dependency org="javax.management.j2ee" name="management-api" rev="${javax-mgmt.version}"
conf="common->master" /> 
+        <dependency org="com.google.code.p.arat" name="rat-lib" rev="${rats-lib.version}"
conf="releaseaudit->default"/>
 </dependencies>
 </ivy-module>

Modified: incubator/hcatalog/trunk/ivy/libraries.properties
URL: http://svn.apache.org/viewvc/incubator/hcatalog/trunk/ivy/libraries.properties?rev=1135311&r1=1135310&r2=1135311&view=diff
==============================================================================
--- incubator/hcatalog/trunk/ivy/libraries.properties (original)
+++ incubator/hcatalog/trunk/ivy/libraries.properties Mon Jun 13 21:59:24 2011
@@ -21,3 +21,4 @@ commons-cli.version=1.0
 jms.version=1.1
 activemq.version=5.5.0
 javax-mgmt.version=1.1-rev-1
+rats-lib.version=0.5.1



Mime
View raw message