This is an automated email from the ASF dual-hosted git repository. schultz pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push: new 5ffb9fb712 Perform a simple gpg test at the beginning of the build to ensure that GPG will work later. 5ffb9fb712 is described below commit 5ffb9fb712691bfb7f79f2d6a5181ff3dec3946a Author: Christopher Schultz <ch...@christopherschultz.net> AuthorDate: Fri Sep 29 08:39:15 2023 -0400 Perform a simple gpg test at the beginning of the build to ensure that GPG will work later. --- build.xml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/build.xml b/build.xml index 41b65ab191..f3d9d845a0 100644 --- a/build.xml +++ b/build.xml @@ -2768,7 +2768,7 @@ asf.ldap.username=${release.asfusername} </target> <!-- Sets properties only required for releases --> - <target name="release-init" depends="gpg-init-1,gpg-init-2,compile" > + <target name="release-init" depends="gpg-init-1,gpg-init-2,gpg-init-3,compile" > <taskdef name="forceUtcTimeZone" classname="org.apache.tomcat.buildutil.ForceUtcTimeZone" classpath="${tomcat.classes}" /> @@ -2780,9 +2780,21 @@ asf.ldap.username=${release.asfusername} </target> <target name="gpg-init-2" if="${gpg.exec.available}"> - <input message="Enter GPG pass-phrase" addproperty="gpg.passphrase" > - <handler type="secure"/> - </input> +<echo>gpg.exec.available=${gpg.exec.available}</echo> +<echo>gpg.exec=${gpg.exec}</echo> + <input addproperty="gpg.passphrase"><handler type="secure"/>Enter GPG passphrase +</input> + </target> + + <!-- Test GPG by signing build.xml as a sample file. --> + <target name="gpg-init-3" if="gpg.passphrase"> + <delete file="build.xml.asc" quiet="true" /> + <antcall target="sign"> + <param name="file" value="build.xml" /> + </antcall> + <uptodate srcfile="build.xml" targetfile="build.xml.asc" property="gpg.success" /> + <delete file="build.xml.asc" quiet="true" /> + <fail unless="gpg.success" /> </target> <!-- Packages the core zip distro --> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org