This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new fb3d1cab30 Support platform or custom makensis on unix/linux/etc
fb3d1cab30 is described below
commit fb3d1cab3032f52a9eeb6f911962bcb439a63aa7
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Mar 4 14:53:44 2025 +0000
Support platform or custom makensis on unix/linux/etc
---
build.xml | 24 ++++++++++++++----------
1 file changed, 14 insertions(+), 10 deletions(-)
diff --git a/build.xml b/build.xml
index c953e1314a..2c5dc18705 100644
--- a/build.xml
+++ b/build.xml
@@ -2576,19 +2576,22 @@
</and>
</or>
</condition>
- <condition property="makensis.ok">
- <or>
- <and>
- <equals arg1="${nsis.tool}" arg2="makensis" forcestring="true"/>
- <available file="makensis" filepath="${env.PATH}"/>
- </and>
- </or>
+ <condition property="nsis.executable.unix"
value="${nsis.bin.home}/Bin/makensis">
+ <available file="makensis" filepath="${nsis.bin.home}/Bin"/>
+ </condition>
+ <condition property="nsis.executable.unix" value="makensis">
+ <and>
+ <available file="makensis" filepath="${env.PATH}"/>
+ <not>
+ <available file="makensis" filepath="${nsis.bin.home}/Bin"/>
+ </not>
+ </and>
</condition>
<condition property="installer.ok">
<or>
<os family="windows"/>
<isset property="wine.ok"/>
- <isset property="makensis.ok"/>
+ <isset property="nsis.executable.unix"/>
<istrue value="${skip.installer}"/>
</or>
</condition>
@@ -2641,8 +2644,9 @@ To skip building the Windows installer, set the
skip.installer property in build
</exec>
</target>
- <target name="-installer-makensis" if="${makensis.ok}">
- <exec dir="${tomcat.dist}" executable="makensis" osfamily="unix">
+ <target name="-installer-makensis" if="nsis.executable.unix">
+ <echo message="Using makensis: ${nsis.executable.unix}"/>
+ <exec dir="${tomcat.dist}" executable="${nsis.executable.unix}"
osfamily="unix">
<arg value="-DNSISDIR=${nsis.bin.home}"/>
<arg value="-V2"/>
<arg value="tomcat.nsi"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]