LUCENE-2998: forward port prepare-release and stage

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1086584 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Grant Ingersoll 2011-03-29 13:52:14 +00:00
parent b822bb427c
commit 1c5398f0e0
3 changed files with 12 additions and 4 deletions

View File

@ -424,9 +424,12 @@
</scp>
</target>
<target name="stage" depends="dist-all, generate-maven-artifacts, sign-artifacts, copy-to-stage">
<target name="prepare-release" depends="clean, dist-all, generate-maven-artifacts, sign-artifacts"/>
<target name="stage" depends="prepare-release, copy-to-stage">
</target>
<target name="generate-maven-artifacts"
depends="maven.ant.tasks-check, package, jar-src, jar-test-framework-src, javadocs">
<sequential>

View File

@ -934,14 +934,14 @@
keyfile="${keyfile}"
verbose="true"
>
<fileset dir="dist"/>
<fileset dir="package"/>
<fileset dir="${keys.dir}">
<include name="KEYS"/>
</fileset>
</scp>
</target>
<target name="prepare-release" depends="clean, svn-up, package, sign-artifacts"
<target name="prepare-release" depends="clean, svn-up, package, generate-maven-artifacts, sign-artifacts"
description="Prototype helper for Committers. Assumes gpg is in the path"/>
<target name="stage" depends="prepare-release, copy-to-stage"/>

View File

@ -414,6 +414,8 @@
</sequential>
</macrodef>
<property name="gpg.exe" value="gpg" />
<property name="gpg.key" value="CODE SIGNING KEY" />
<macrodef name="sign-artifact" description="Signs the artifact">
<attribute name="input.file"/>
<attribute name="output.file" default="@{input.file}.asc"/>
@ -421,10 +423,13 @@
<sequential>
<echo >Signing @{input.file} Sig File: @{output.file}</echo>
<exec executable="gpg" >
<exec executable="${gpg.exe}" >
<arg value="--batch"/>
<arg value="--armor"/>
<arg value="--output"/>
<arg value="@{output.file}"/>
<arg value="--default-key"/>
<arg value="${gpg.key}"/>
<arg value="--passphrase"/>
<arg value="@{gpg.passphrase}"/>
<arg value="--detach-sig"/>