This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new dd5062acd9 Consistent formatting for installer targets
dd5062acd9 is described below
commit dd5062acd9e8f298d34be321459bde703d043402
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Mar 4 14:37:16 2025 +0000
Consistent formatting for installer targets
---
build.xml | 86 ++++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 46 insertions(+), 40 deletions(-)
diff --git a/build.xml b/build.xml
index db6125e8d2..73d4e2084c 100644
--- a/build.xml
+++ b/build.xml
@@ -2595,12 +2595,12 @@ Apache Tomcat ${version} native binaries for Win64
AMD64/EMT64 platform.
</target>
<target name="-installer-pre-init">
- <property environment="env" />
+ <property environment="env"/>
<condition property="wine.ok">
<or>
<and>
<equals arg1="${nsis.tool}" arg2="wine" forcestring="true"/>
- <available file="wine" filepath="${env.PATH}" />
+ <available file="wine" filepath="${env.PATH}"/>
</and>
</or>
</condition>
@@ -2608,13 +2608,13 @@ Apache Tomcat ${version} native binaries for Win64
AMD64/EMT64 platform.
<or>
<and>
<equals arg1="${nsis.tool}" arg2="makensis" forcestring="true"/>
- <available file="makensis" filepath="${env.PATH}" />
+ <available file="makensis" filepath="${env.PATH}"/>
</and>
</or>
</condition>
<condition property="installer.ok">
<or>
- <os family="windows" />
+ <os family="windows"/>
<isset property="wine.ok"/>
<isset property="makensis.ok"/>
<istrue value="${skip.installer}"/>
@@ -2622,7 +2622,9 @@ Apache Tomcat ${version} native binaries for Win64
AMD64/EMT64 platform.
</condition>
</target>
- <target name="-installer-init" depends="-installer-pre-init"
unless="${installer.ok}">
+ <target name="-installer-init"
+ depends="-installer-pre-init"
+ unless="${installer.ok}">
<fail message="The executable ${nsis.tool} was not found on the current
path.
Either wine or makensis are required to build the Windows installer on a
non-Windows platform.
Choose the tool by setting property nsis.tool in build.properties.
@@ -2630,27 +2632,27 @@ To skip building the Windows installer, set the
skip.installer property in build
</target>
<target name="-installer-prep"
- unless="skip.installer" depends="dist-static,-installer-init">
+ depends="dist-static,-installer-init"
+ unless="skip.installer">
<copy todir="${tomcat.dist}">
<fileset dir="res/install-win">
- <include name="INSTALLLICENSE" />
- <include name="*.bmp" />
- <include name="*.ico" />
- <include name="*.xml" />
+ <include name="INSTALLLICENSE"/>
+ <include name="*.bmp"/>
+ <include name="*.ico"/>
+ <include name="*.xml"/>
</fileset>
</copy>
- <copy file="${nsis.installoptions.dll}" todir="${tomcat.dist}" />
- <copy file="${nsis.nsexec.dll}" todir="${tomcat.dist}" />
- <copy file="${nsis.nsisdl.dll}" todir="${tomcat.dist}" />
- <copy file="${nsis.system.dll}" todir="${tomcat.dist}" />
- <copy file="${nsis.nsdialogs.dll}" todir="${tomcat.dist}" />
+ <copy file="${nsis.installoptions.dll}" todir="${tomcat.dist}"/>
+ <copy file="${nsis.nsexec.dll}" todir="${tomcat.dist}"/>
+ <copy file="${nsis.nsisdl.dll}" todir="${tomcat.dist}"/>
+ <copy file="${nsis.system.dll}" todir="${tomcat.dist}"/>
+ <copy file="${nsis.nsdialogs.dll}" todir="${tomcat.dist}"/>
<copy file="res/install-win/tomcat.nsi" tofile="${tomcat.dist}/tomcat.nsi"
overwrite="true" encoding="ISO-8859-1">
<filterset refid="version.filters"/>
<filterset refid="path.filters"/>
</copy>
- <fixcrlf srcdir="${tomcat.dist}" eol="crlf"
- encoding="ISO-8859-1" fixlast="false" >
- <patternset refid="text.files" />
+ <fixcrlf srcdir="${tomcat.dist}" eol="crlf" encoding="ISO-8859-1"
fixlast="false">
+ <patternset refid="text.files"/>
</fixcrlf>
<!-- Reproducible builds: consistent timestamps for installer files -->
<touch datetime="${tstamp.file}" pattern="yyyy-MM-dd HH:mm:ss">
@@ -2660,48 +2662,51 @@ To skip building the Windows installer, set the
skip.installer property in build
<target name="-installer-wine" if="${wine.ok}">
<exec dir="${tomcat.dist}" executable="wine" osfamily="unix">
- <arg value="${nsis.executable.windows}" />
- <arg value="/DNSISDIR=${nsis.bin.home}" />
- <arg value="/V2" />
- <arg value="tomcat.nsi" />
+ <arg value="${nsis.executable.windows}"/>
+ <arg value="/DNSISDIR=${nsis.bin.home}"/>
+ <arg value="/V2"/>
+ <arg value="tomcat.nsi"/>
</exec>
</target>
<target name="-installer-makensis" if="${makensis.ok}">
<exec dir="${tomcat.dist}" executable="makensis" osfamily="unix">
- <arg value="-DNSISDIR=${nsis.bin.home}" />
- <arg value="-V2" />
- <arg value="tomcat.nsi" />
+ <arg value="-DNSISDIR=${nsis.bin.home}"/>
+ <arg value="-V2"/>
+ <arg value="tomcat.nsi"/>
</exec>
</target>
- <target name="-installer" unless="skip.installer"
- depends="-installer-prep,-installer-wine,-installer-makensis">
+ <target name="-installer"
+ depends="-installer-prep,-installer-wine,-installer-makensis"
+ unless="skip.installer">
<exec dir="${tomcat.dist}" executable="${nsis.executable.windows}"
osfamily="windows">
- <arg value="/DNSISDIR=${nsis.bin.home}" />
- <arg value="/V2" />
- <arg value="tomcat.nsi" />
+ <arg value="/DNSISDIR=${nsis.bin.home}"/>
+ <arg value="/V2"/>
+ <arg value="tomcat.nsi"/>
</exec>
</target>
<target name="installer-sign"
description="Builds and optionally signs the Windows installer"
- depends="-installer" unless="skip.installer" >
- <move file="${tomcat.dist}/tomcat-installer.exe"
tofile="${tomcat.release}/v${version}/bin/${final.name}.exe" />
+ depends="-installer"
+ unless="skip.installer">
+ <move file="${tomcat.dist}/tomcat-installer.exe"
tofile="${tomcat.release}/v${version}/bin/${final.name}.exe"/>
<!-- .exe has changed so need to redo checksums and OpenPGP signature -->
- <delete file="${tomcat.release}/v${version}/bin/${final.name}.exe.asc" />
- <delete file="${tomcat.release}/v${version}/bin/${final.name}.exe.sha512"
/>
- <hashAndSign file="${tomcat.release}/v${version}/bin/${final.name}.exe" />
+ <delete file="${tomcat.release}/v${version}/bin/${final.name}.exe.asc"/>
+ <delete file="${tomcat.release}/v${version}/bin/${final.name}.exe.sha512"/>
+ <hashAndSign file="${tomcat.release}/v${version}/bin/${final.name}.exe"/>
</target>
<!-- Called via a callback in the NSIS installer script -->
<target name="jsign-installer"
- depends="setup-jsign" if="${do.codesigning}" >
+ depends="setup-jsign"
+ if="${do.codesigning}">
<echo>Signing ${tomcat.dist}/tomcat-installer.exe</echo>
<!-- Copy pre-existing detachced signature to signing directory -->
<copy file="res/install-win/tomcat-installer.exe.sig"
tofile="${tomcat.dist}/tomcat-installer.exe.sig"
- failonerror="false" />
+ failonerror="false"/>
<!-- If the detached signature doesn't exist, this will sign the file -->
<!-- and create the detached signature. If the detached signature does -->
<!-- exist it will be attached to the file. -->
@@ -2720,12 +2725,13 @@ To skip building the Windows installer, set the
skip.installer property in build
<!-- Called via a callback in the NSIS installer script -->
<target name="jsign-uninstaller"
- depends="setup-jsign" if="${do.codesigning}" >
+ depends="setup-jsign"
+ if="${do.codesigning}">
<echo>Signing ${codesigning.file_to_sign}</echo>
<!-- Copy pre-existing detachced signature to signing directory -->
<copy file="res/install-win/Uninstall.exe.sig"
tofile="${codesigning.file_to_sign}.sig"
- failonerror="false" />
+ failonerror="false"/>
<!-- If the detached signature doesn't exist, this will sign the file -->
<!-- and create the detached signature. If the detached signature does -->
<!-- exist it will be attached to the file. -->
@@ -2737,7 +2743,7 @@ To skip building the Windows installer, set the
skip.installer property in build
alg="${codesigning.digest}"
tsaurl="http://ts.ssl.com"
tsmode="RFC3161"
- detached="true" />
+ detached="true"/>
<!-- Move detached signature to source tree -->
<move file="${codesigning.file_to_sign}.sig"
tofile="res/install-win/Uninstall.exe.sig"/>
</target>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]