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 ga...@apache.org on 2011/06/13 22:12:21 UTC
svn commit: r1135315 - in /incubator/hcatalog/branches/branch-0.1:
CHANGES.txt build.xml ivy.xml ivy/libraries.properties
Author: gates
Date: Mon Jun 13 22:12:20 2011
New Revision: 1135315
URL: http://svn.apache.org/viewvc?rev=1135315&view=rev
Log:
HCATALOG Add a releaseaudit target to build.xml
Modified:
incubator/hcatalog/branches/branch-0.1/CHANGES.txt
incubator/hcatalog/branches/branch-0.1/build.xml
incubator/hcatalog/branches/branch-0.1/ivy.xml
incubator/hcatalog/branches/branch-0.1/ivy/libraries.properties
Modified: incubator/hcatalog/branches/branch-0.1/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/hcatalog/branches/branch-0.1/CHANGES.txt?rev=1135315&r1=1135314&r2=1135315&view=diff
==============================================================================
--- incubator/hcatalog/branches/branch-0.1/CHANGES.txt (original)
+++ incubator/hcatalog/branches/branch-0.1/CHANGES.txt Mon Jun 13 22:12:20 2011
@@ -15,6 +15,8 @@ Release 0.1.0 - Unreleased
(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)
HCAT-27. Start and stop scripts for the server (gates)
Modified: incubator/hcatalog/branches/branch-0.1/build.xml
URL: http://svn.apache.org/viewvc/incubator/hcatalog/branches/branch-0.1/build.xml?rev=1135315&r1=1135314&r2=1135315&view=diff
==============================================================================
--- incubator/hcatalog/branches/branch-0.1/build.xml (original)
+++ incubator/hcatalog/branches/branch-0.1/build.xml Mon Jun 13 22:12:20 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 -->
@@ -191,6 +194,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}" />
@@ -462,6 +472,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/branches/branch-0.1/ivy.xml
URL: http://svn.apache.org/viewvc/incubator/hcatalog/branches/branch-0.1/ivy.xml?rev=1135315&r1=1135314&r2=1135315&view=diff
==============================================================================
--- incubator/hcatalog/branches/branch-0.1/ivy.xml (original)
+++ incubator/hcatalog/branches/branch-0.1/ivy.xml Mon Jun 13 22:12:20 2011
@@ -33,12 +33,14 @@
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}"
conf="common->master" />
<dependency org="commons-cli" name="commons-cli" rev="${commons-cli.version}"
conf="common->master"/>
+ <dependency org="com.google.code.p.arat" name="rat-lib" rev="${rats-lib.version}" conf="releaseaudit->default"/>
<!-- Removed until there is a secure version of hadoop in maven
<dependency org="org.apache.hadoop" name="hadoop-core" rev="${hadoop-core.version}"
conf="common->master"/>
Modified: incubator/hcatalog/branches/branch-0.1/ivy/libraries.properties
URL: http://svn.apache.org/viewvc/incubator/hcatalog/branches/branch-0.1/ivy/libraries.properties?rev=1135315&r1=1135314&r2=1135315&view=diff
==============================================================================
--- incubator/hcatalog/branches/branch-0.1/ivy/libraries.properties (original)
+++ incubator/hcatalog/branches/branch-0.1/ivy/libraries.properties Mon Jun 13 22:12:20 2011
@@ -18,4 +18,5 @@ ivy.version=2.2.0
pig.version=0.8.0
commons-cli.version=1.0
#hadoop-core.version=0.20.2 Waiting for a secure version of hadoop in maven
+rats-lib.version=0.5.1