Skip to content

Commit

Permalink
Merged revision(s) 552 from main/trunk:
Browse files Browse the repository at this point in the history
add release signing
  • Loading branch information
uschindler committed Apr 23, 2014
2 parents 767633d + 3afaa77 commit a8693c5
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
<property name="javadoc.link.sun" value="http://docs.oracle.com/javase/1.5.0/docs/api/" />
<property name="javadoc.link.lucene" value="http://lucene.apache.org/core/3_6_2/api/core/" />

<!-- GPG settings -->
<property name="gpg.exe" value="gpg" />
<property name="gpg.key" value="E1EE085F" />

<!-- GLOBALS -->
<target name="init">
</target>
Expand Down Expand Up @@ -175,6 +179,7 @@
</delete>
<delete>
<fileset dir="${basedir}" includes="*.zip"/>
<fileset dir="${basedir}" includes="*.asc"/>
<fileset dir="${basedir}" includes="*.md5"/>
<fileset dir="${basedir}" includes="*.sha1"/>
<fileset dir="${basedir}" includes="*.asc"/>
Expand All @@ -197,4 +202,28 @@
</sequential>
</macrodef>

<target name="sign-artifacts" depends="package">
<delete failonerror="false" dir="${basedir}" includes="*.asc"/>

<input message="Enter GPG keystore password: &gt;" addproperty="gpg.passphrase">
<handler classname="org.apache.tools.ant.input.SecureInputHandler" />
</input>

<apply executable="${gpg.exe}" inputstring="${gpg.passphrase}"
dest="${basedir}" type="file" maxparallel="1" verbose="yes">
<arg value="--passphrase-fd"/>
<arg value="0"/>
<arg value="--batch"/>
<arg value="--armor"/>
<arg value="--default-key"/>
<arg value="${gpg.key}"/>
<arg value="--output"/>
<targetfile/>
<arg value="--detach-sig"/>
<srcfile/>
<fileset dir="${basedir}" includes="*.zip"/>
<globmapper from="*" to="*.asc"/>
</apply>
</target>

</project>

0 comments on commit a8693c5

Please sign in to comment.