You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by ma...@apache.org on 2012/04/16 23:04:21 UTC

svn commit: r1326801 - /ant/ivy/core/trunk/build-release.xml

Author: maartenc
Date: Mon Apr 16 21:04:20 2012
New Revision: 1326801

URL: http://svn.apache.org/viewvc?rev=1326801&view=rev
Log:
Fixed problem with signing the artifacts.

Modified:
    ant/ivy/core/trunk/build-release.xml

Modified: ant/ivy/core/trunk/build-release.xml
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/build-release.xml?rev=1326801&r1=1326800&r2=1326801&view=diff
==============================================================================
--- ant/ivy/core/trunk/build-release.xml (original)
+++ ant/ivy/core/trunk/build-release.xml Mon Apr 16 21:04:20 2012
@@ -387,17 +387,27 @@
 	</target>
 	
 	<target name="sign" depends="init-ivy">
-		<ivy:settings id="sign.settingsId" file="ivysettings-release.xml" />
-		<ivy:cachepath organisation="org.apache.commons" settingsRef="sign.settingsId" transitive="false" log="download-only"
-				module="commons-openpgp" revision="1.0-SNAPSHOT" inline="true" pathid="openpgp.classpath"/>
-		<ivy:cachepath organisation="org.bouncycastle" settingsRef="sign.settingsId" log="download-only"
-				module="bcprov-jdk16" revision="1.45" inline="true" pathid="bouncycastle.bcprov.classpath"/>
-		<ivy:cachepath organisation="org.bouncycastle" settingsRef="sign.settingsId" transitive="false" log="download-only"
-				module="bcpg-jdk16" revision="1.45" inline="true" pathid="bouncycastle.bcpg.classpath"/>
-		
-		<property file="${user.home}/ivybuild.properties" />
-		<input message="please enter your PGP password: " addproperty="pgp.password"/>
-		<input message="please enter your PGP keyId: " addproperty="pgp.keyId"/>
+        <property file="${user.home}/ivybuild.properties" />
+        <input message="please enter your PGP password: " addproperty="pgp.password"/>
+        <input message="please enter your PGP keyId: " addproperty="pgp.keyId"/>
+
+        <ivy:retrieve conf="default" pattern="${build.dir}/lib/[artifact]-[revision].[ext]" />
+
+        <taskdef resource="org/apache/ivy/ant/antlib.xml"
+                uri="antlib:org.apache.ivy.ant_2">
+            <classpath>
+                <fileset dir="${artifacts.build.dir}/jars" includes="${final.name}" />
+                <fileset dir="${build.dir}/lib" excludes="ant-*.jar" />
+            </classpath>
+        </taskdef>
+
+        <ivy2:settings id="sign.settingsId" file="ivysettings-release.xml" />
+        <ivy2:cachepath organisation="org.apache.commons" settingsRef="sign.settingsId" transitive="false" log="download-only"
+                module="commons-openpgp" revision="1.0-SNAPSHOT" inline="true" pathid="openpgp.classpath"/>
+        <ivy2:cachepath organisation="org.bouncycastle" settingsRef="sign.settingsId" log="download-only"
+                module="bcprov-jdk16" revision="1.45" inline="true" pathid="bouncycastle.bcprov.classpath"/>
+        <ivy2:cachepath organisation="org.bouncycastle" settingsRef="sign.settingsId" transitive="false" log="download-only"
+                module="bcpg-jdk16" revision="1.45" inline="true" pathid="bouncycastle.bcpg.classpath"/>
 		
 		<!--
 			For some reason, if we use the openpgp:signer task here directly, the bouncycastle security