Author: cos
Date: Thu Jul 8 02:32:14 2010
New Revision: 961560
URL: http://svn.apache.org/viewvc?rev=961560&view=rev
Log:
HADOOP-6847. svn merge -c 961559 from trunk
Modified:
hadoop/common/branches/branch-0.21/ (props changed)
hadoop/common/branches/branch-0.21/CHANGES.txt (contents, props changed)
hadoop/common/branches/branch-0.21/build.xml
hadoop/common/branches/branch-0.21/ivy/libraries.properties
hadoop/common/branches/branch-0.21/src/contrib/ec2/ (props changed)
hadoop/common/branches/branch-0.21/src/docs/ (props changed)
hadoop/common/branches/branch-0.21/src/java/ (props changed)
hadoop/common/branches/branch-0.21/src/test/aop/build/aop.xml
hadoop/common/branches/branch-0.21/src/test/core/ (props changed)
Propchange: hadoop/common/branches/branch-0.21/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Thu Jul 8 02:32:14 2010
@@ -1,2 +1,2 @@
-/hadoop/common/trunk:944521,945941-945953,947218,947222,947882,948174,948237,948242,950309,951259,955438
+/hadoop/common/trunk:944521,945941-945953,947218,947222,947882,948174,948237,948242,950309,951259,955438,961559
/hadoop/core/branches/branch-0.19/core:713112
Modified: hadoop/common/branches/branch-0.21/CHANGES.txt
URL:
http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.21/CHANGES.txt?rev=961560&r1=961559&r2=961560&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.21/CHANGES.txt (original)
+++ hadoop/common/branches/branch-0.21/CHANGES.txt Thu Jul 8 02:32:14 2010
@@ -908,6 +908,9 @@ Release 0.21.0 - 2010-07-01
BUG FIXES
+ HADOOP-6847. Problem staging 0.21.0 artifacts to Apache Nexus Maven
+ Repository (Giridharan Kesavan via cos)
+
HADOOP-6748. Removes hadoop.cluster.administrators, cluster administrators
acl is passed as parameter in constructor. (amareshwari)
Propchange: hadoop/common/branches/branch-0.21/CHANGES.txt
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Thu Jul 8 02:32:14 2010
@@ -1,4 +1,4 @@
-/hadoop/common/trunk/CHANGES.txt:944521,945941-945953,947218,947222,947882,948174,948237,948242,950309,951259,951614,953504,955438
+/hadoop/common/trunk/CHANGES.txt:944521,945941-945953,947218,947222,947882,948174,948237,948242,950309,951259,951614,953504,955438,961559
/hadoop/core/branches/branch-0.18/CHANGES.txt:727226
/hadoop/core/branches/branch-0.19/CHANGES.txt:713112
/hadoop/core/trunk/CHANGES.txt:776175-785643,785929-786278
Modified: hadoop/common/branches/branch-0.21/build.xml
URL:
http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.21/build.xml?rev=961560&r1=961559&r2=961560&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.21/build.xml (original)
+++ hadoop/common/branches/branch-0.21/build.xml Thu Jul 8 02:32:14 2010
@@ -133,7 +133,10 @@
<property name="ivy.repo.dir" value="${user.home}/ivyrepo" />
<property name="ivy.dir" location="ivy" />
<loadproperties srcfile="${ivy.dir}/libraries.properties"/>
- <property name="asfrepo"
value="https://repository.apache.org/content/repositories/snapshots"/>
+ <property name="asfrepo" value="https://repository.apache.org"/>
+ <property name="asfsnapshotrepo"
value="${asfrepo}/content/repositories/snapshots"/>
+ <property name="asfstagingrepo"
+ value="${asfrepo}/service/local/staging/deploy/maven2"/>
<property name="mvnrepo" value="http://repo2.maven.org/maven2"/>
<property name="ivy.jar" location="${ivy.dir}/ivy-${ivy.version}.jar"/>
<property name="ant_task.jar"
location="${ivy.dir}/maven-ant-tasks-${ant-task.version}.jar"/>
@@ -188,7 +191,11 @@
</and>
</condition>
- <!-- the normal classpath -->
+ <condition property="staging">
+ <equals arg1="${repo}" arg2="staging"/>
+ </condition>
+
+<!-- the normal classpath -->
<path id="classpath">
<pathelement location="${build.classes}"/>
<pathelement location="${conf.dir}"/>
@@ -1219,25 +1226,117 @@
</artifact:install>
</target>
- <target name="mvn-deploy" depends="mvn-taskdef, jar, jar-test, set-version,
- -mvn-system-deploy"
- description="To deploy hadoop common and test jar's to apache snapshot's
repository">
+
+ <target name="mvn-deploy" depends="mvn-taskdef, jar, jar-test,
+ jar-system, set-version, signanddeploy, simpledeploy"
+ description="To deploy hadoop common and test jar's to apache
+ snapshot's repository"/>
+
+ <target name="signanddeploy" if="staging" depends="sign">
<artifact:pom file="${hadoop-common.pom}" id="hadoop.core"/>
<artifact:pom file="${hadoop-common-test.pom}" id="hadoop.core.test"/>
+ <artifact:pom file="${hadoop-common-instrumented.pom}"
+ id="hadoop.core.${herriot.suffix}"/>
+ <artifact:install-provider artifactId="wagon-http"
+ version="${wagon-http.version}"/>
- <artifact:install-provider artifactId="wagon-http" version="1.0-beta-2"/>
<artifact:deploy file="${hadoop-common.jar}">
- <remoteRepository id="apache.snapshots.https" url="${asfrepo}"/>
+ <remoteRepository id="apache.staging.https" url="${asfstagingrepo}"/>
+ <pom refid="hadoop.core"/>
+ <attach file="${hadoop-common.jar}.asc" type="jar.asc"/>
+ <attach file="${hadoop-common.pom}.asc" type="pom.asc"/>
+ <attach file="${hadoop-common-sources.jar}.asc" type="jar.asc" />
+ <attach file="${hadoop-common-sources.jar}" classifier="sources"/>
+ </artifact:deploy>
+
+ <artifact:deploy file="${hadoop-common-test.jar}">
+ <remoteRepository id="apache.staging.https" url="${asfstagingrepo}"/>
+ <pom refid="hadoop.core.test"/>
+ <attach file="${hadoop-common-test.jar}.asc" type="jar.asc"/>
+ <attach file="${hadoop-common-test.pom}.asc" type="pom.asc"/>
+ <attach file="${hadoop-common-test-sources.jar}.asc" type="jar.asc"/>
+ <attach file="${hadoop-common-test-sources.jar}" classifier="sources"/>
+ </artifact:deploy>
+
+ <artifact:deploy file="${hadoop-common-instrumented.jar}">
+ <remoteRepository id="apache.staging.https" url="${asfstagingrepo}"/>
+ <pom refid="hadoop.core.${herriot.suffix}"/>
+ <attach file="${hadoop-common-instrumented.jar}.asc" type="jar.asc"/>
+ <attach file="${hadoop-common-instrumented.pom}.asc" type="pom.asc"/>
+ <attach file="${hadoop-common-instrumented-sources.jar}.asc"
+ type="jar.asc"/>
+ <attach file="${hadoop-common-instrumented-sources.jar}"
+ classifier="sources"/>
+ </artifact:deploy>
+ </target>
+
+ <target name="sign" depends="clean-sign" if="staging">
+ <input message="password:>" addproperty="gpg.passphrase">
+ <handler classname="org.apache.tools.ant.input.SecureInputHandler" />
+ </input>
+ <macrodef name="sign-artifact" description="Signs the artifact">
+ <attribute name="input.file"/>
+ <attribute name="output.file" default="@{input.file}.asc"/>
+ <attribute name="gpg.passphrase"/>
+ <sequential>
+ <echo>Signing @{input.file} Sig File: @{output.file}</echo>
+ <exec executable="gpg" >
+ <arg value="--armor"/>
+ <arg value="--output"/>
+ <arg value="@{output.file}"/>
+ <arg value="--passphrase"/>
+ <arg value="@{gpg.passphrase}"/>
+ <arg value="--detach-sig"/>
+ <arg value="@{input.file}"/>
+ </exec>
+ </sequential>
+ </macrodef>
+ <sign-artifact input.file="${hadoop-common.jar}"
+ output.file="${hadoop-common.jar}.asc"
gpg.passphrase="${gpg.passphrase}"/>
+ <sign-artifact input.file="${hadoop-common-test.jar}"
+ output.file="${hadoop-common-test.jar}.asc"
gpg.passphrase="${gpg.passphrase}"/>
+ <sign-artifact input.file="${hadoop-common-sources.jar}"
+ output.file="${hadoop-common-sources.jar}.asc"
gpg.passphrase="${gpg.passphrase}"/>
+ <sign-artifact input.file="${hadoop-common-test-sources.jar}"
+ output.file="${hadoop-common-test-sources.jar}.asc"
gpg.passphrase="${gpg.passphrase}"/>
+ <sign-artifact input.file="${hadoop-common.pom}"
+ output.file="${hadoop-common.pom}.asc"
gpg.passphrase="${gpg.passphrase}"/>
+ <sign-artifact input.file="${hadoop-common-test.pom}"
+ output.file="${hadoop-common-test.pom}.asc"
gpg.passphrase="${gpg.passphrase}"/>
+ <sign-artifact input.file="${hadoop-common-instrumented.jar}"
+ output.file="${hadoop-common-instrumented.jar}.asc"
gpg.passphrase="${gpg.passphrase}"/>
+ <sign-artifact input.file="${hadoop-common-instrumented.pom}"
+ output.file="${hadoop-common-instrumented.pom}.asc"
gpg.passphrase="${gpg.passphrase}"/>
+ <sign-artifact input.file="${hadoop-common-instrumented-sources.jar}"
+ output.file="${hadoop-common-instrumented-sources.jar}.asc"
gpg.passphrase="${gpg.passphrase}"/>
+ </target>
+
+ <target name="simpledeploy" unless="staging">
+ <artifact:pom file="${hadoop-common.pom}" id="hadoop.core"/>
+ <artifact:pom file="${hadoop-common-test.pom}" id="hadoop.test"/>
+ <artifact:pom file="${hadoop-common-instrumented.pom}"
+ id="hadoop.core.${herriot.suffix}"/>
+
+ <artifact:install-provider artifactId="wagon-http"
version="${wagon-http.version}"/>
+ <artifact:deploy file="${hadoop-common.jar}">
+ <remoteRepository id="apache.snapshots.https"
url="${asfsnapshotrepo}"/>
<pom refid="hadoop.core"/>
- <attach file="${hadoop-common-sources.jar}" classifier="sources" />
+ <attach file="${hadoop-common-sources.jar}" classifier="sources" />
</artifact:deploy>
+
<artifact:deploy file="${hadoop-common-test.jar}">
- <remoteRepository id="apache.snapshots.https" url="${asfrepo}"/>
+ <remoteRepository id="apache.snapshots.https"
url="${asfsnapshotrepo}"/>
<pom refid="hadoop.core.test"/>
- <attach file="${hadoop-common-test-sources.jar}" classifier="sources" />
+ <attach file="${hadoop-common-test-sources.jar}" classifier="sources"
/>
+ </artifact:deploy>
+
+ <artifact:deploy file="${hadoop-common-instrumented.jar}">
+ <remoteRepository id="apache.snapshots.https"
url="${asfsnapshotrepo}"/>
+ <pom refid="hadoop.core.${herriot.suffix}"/>
+ <attach file="${hadoop-common-instrumented-sources.jar}"
classifier="sources" />
</artifact:deploy>
</target>
-
+
<target name="set-version">
<delete file="${basedir}/ivy/hadoop-common.xml"/>
<delete file="${basedir}/ivy/hadoop-common-test.xml"/>
@@ -1284,15 +1383,23 @@
<!-- ================================================================== -->
<!-- Clean. Delete the build files, and their directories -->
<!-- ================================================================== -->
- <target name="clean" depends="clean-contrib, clean-fi" description="Clean.
Delete the build files, and their directories">
+ <target name="clean" depends="clean-contrib, clean-sign, clean-fi"
description="Clean. Delete the build files, and their directories">
<delete dir="${build.dir}"/>
<delete file="${basedir}/ivy/hadoop-common.xml"/>
+ <delete file="${basedir}/ivy/hadoop-common-pom.xml"/>
<delete file="${basedir}/ivy/hadoop-common-test.xml"/>
+ <delete file="${basedir}/ivy/hadoop-common-test-pom.xml"/>
<delete file="${basedir}/ivy/hadoop-common-${herriot.suffix}.xml"/>
<delete dir="${docs.src}/build"/>
<delete dir="${src.docs.cn}/build"/>
</target>
+ <target name="clean-sign" description="Clean. Delete .asc files">
+ <delete>
+ <fileset dir="." includes="**/**/*.asc"/>
+ </delete>
+ </target>
+
<target name="veryclean" depends="clean" description="Delete mvn ant task
jar and ivy ant taks jar">
<delete file="${ant_task.jar}"/>
<delete file="${ivy.jar}"/>
Modified: hadoop/common/branches/branch-0.21/ivy/libraries.properties
URL:
http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.21/ivy/libraries.properties?rev=961560&r1=961559&r2=961560&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.21/ivy/libraries.properties (original)
+++ hadoop/common/branches/branch-0.21/ivy/libraries.properties Thu Jul 8
02:32:14 2010
@@ -70,6 +70,8 @@ servlet-api.version=2.5
slf4j-api.version=1.5.11
slf4j-log4j12.version=1.5.11
+wagon-http.version=1.0-beta-2
+
xmlenc.version=0.52
xerces.version=1.4.4
Propchange: hadoop/common/branches/branch-0.21/src/contrib/ec2/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Thu Jul 8 02:32:14 2010
@@ -1,3 +1,3 @@
-/hadoop/common/trunk/src/contrib/ec2:944521,945941-945953,947218,947222,947882,948174,948237,948242,950309,951259,955438
+/hadoop/common/trunk/src/contrib/ec2:944521,945941-945953,947218,947222,947882,948174,948237,948242,950309,951259,955438,961559
/hadoop/core/branches/branch-0.19/core/src/contrib/ec2:713112
/hadoop/core/trunk/src/contrib/ec2:776175-784663
Propchange: hadoop/common/branches/branch-0.21/src/docs/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Thu Jul 8 02:32:14 2010
@@ -1,2 +1,2 @@
-/hadoop/common/trunk/src/docs:944521,945941-945953,947218,947222,947882,948174,948237,948242,950309,951259,955438
+/hadoop/common/trunk/src/docs:944521,945941-945953,947218,947222,947882,948174,948237,948242,950309,951259,955438,961559
/hadoop/core/branches/branch-0.19/src/docs:713112
Propchange: hadoop/common/branches/branch-0.21/src/java/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Thu Jul 8 02:32:14 2010
@@ -1,3 +1,3 @@
-/hadoop/common/trunk/src/java:944521,945941-945953,947218,947222,947882,948174,948237,948242,950309,951259,955438
+/hadoop/common/trunk/src/java:944521,945941-945953,947218,947222,947882,948174,948237,948242,950309,951259,955438,961559
/hadoop/core/branches/branch-0.19/core/src/java:713112
/hadoop/core/trunk/src/core:776175-785643,785929-786278
Modified: hadoop/common/branches/branch-0.21/src/test/aop/build/aop.xml
URL:
http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.21/src/test/aop/build/aop.xml?rev=961560&r1=961559&r2=961560&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.21/src/test/aop/build/aop.xml (original)
+++ hadoop/common/branches/branch-0.21/src/test/aop/build/aop.xml Thu Jul 8
02:32:14 2010
@@ -29,12 +29,13 @@
<!-- Properties specifically for system fault-injections and system tests -->
<property name="herriot.suffix" value="instrumented"/>
+ <property name="herriot.final.name"
value="${name}-${herriot.suffix}-${version}"/>
<property name="hadoop-common-instrumented.pom"
location="${ivy.dir}/hadoop-common-${herriot.suffix}.xml" />
<property name="hadoop-common-instrumented.jar"
-
location="${system-test-build-dir}/${final.name}-${herriot.suffix}.jar" />
+ location="${system-test-build-dir}/${herriot.final.name}.jar" />
<property name="hadoop-common-instrumented-sources.jar"
-
location="${system-test-build-dir}/${final.name}-${herriot.suffix}-sources.jar"
/>
+
location="${system-test-build-dir}/${herriot.final.name}-sources.jar" />
<!--All Fault Injection (FI) related targets are located in this session -->
@@ -129,9 +130,9 @@
<macro-jar-fault-inject target.name="jar"
build.dir="${system-test-build-dir}"
jar.final.name="final.name"
- jar.final.value="${final.name}-${herriot.suffix}">
+ jar.final.value="${herriot.final.name}">
</macro-jar-fault-inject>
- <jar
jarfile="${system-test-build-dir}/${final.name}-${herriot.suffix}-sources.jar"
+ <jar jarfile="${system-test-build-dir}/${herriot.final.name}-sources.jar"
update="yes">
<fileset dir="${test.src.dir}/system/java"
includes="org/apache/hadoop/**/*.java"/>
<fileset dir="${test.src.dir}/system/aop"
includes="org/apache/hadoop/**/*.aj"/>
@@ -258,7 +259,8 @@
<attach file="${hadoop-common-instrumented-sources.jar}"
classifier="sources" />
</artifact:install>
</target>
-
+ <!-- -mvn-system-deploy target is no more called from the root
+ build.xml -->
<target name="-mvn-system-deploy" depends="mvn-taskdef, jar-system">
<artifact:pom file="${hadoop-common-instrumented.pom}"
id="hadoop.core.${herriot.suffix}"/>
Propchange: hadoop/common/branches/branch-0.21/src/test/core/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Thu Jul 8 02:32:14 2010
@@ -1,3 +1,3 @@
-/hadoop/common/trunk/src/test/core:944521,945941-945953,947218,947222,947882,948174,948237,948242,950309,951259,955438
+/hadoop/common/trunk/src/test/core:944521,945941-945953,947218,947222,947882,948174,948237,948242,950309,951259,955438,961559
/hadoop/core/branches/branch-0.19/core/src/test/core:713112
/hadoop/core/trunk/src/test/core:776175-785643,785929-786278