This is an automated email from the ASF dual-hosted git repository. schultz pushed a commit to branch 10.1.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit a74199a11848d3cacb9b95b5e5ae2f4040eb8fa6 Author: Christopher Schultz <ch...@christopherschultz.net> AuthorDate: Fri Sep 29 11:07:41 2023 -0400 Check GPG viability without actually creating a file. --- build.xml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/build.xml b/build.xml index 0e933bef3e..be035680d5 100644 --- a/build.xml +++ b/build.xml @@ -2824,13 +2824,21 @@ asf.ldap.username=${release.asfusername} <!-- 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" /> + <exec executable="${gpg.exec}" + inputstring="${gpg.passphrase}" + failonerror="true" + discardOutput="true" + logError="true"> + <arg value="--batch"/> + <arg value="--pinentry-mode"/> + <arg value="loopback"/> + <arg value="--passphrase-fd"/> + <arg value="0"/> + <arg value="-o" /><!-- write to stdout --> + <arg value="-" /> + <arg value="--detach-sign"/> + <arg value="build.xml"/> + </exec> </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