Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3238,9 +3238,11 @@ Configured for ${release.asfusername} to release Tomcat ${version.major}.${versi
modificationtime="${tstamp.iso.release}"
encoding="UTF8">
<zipfileset file="${tomcat.dist}" fullpath="${final.name}"/>
<zipfileset dir="${tomcat.dist}" prefix="${final.name}">
<include name="bin/**"/>
<zipfileset dir="${tomcat.dist}" dirmode="700" filemode="600" prefix="${final.name}">
<include name="conf/**"/>
</zipfileset>
<zipfileset dir="${tomcat.dist}" dirmode="750" filemode="640" prefix="${final.name}">
<include name="bin/**"/>
<include name="logs/**"/>
<include name="lib/**"/>
<include name="webapps/**"/>
Expand All @@ -3254,9 +3256,15 @@ Configured for ${release.asfusername} to release Tomcat ${version.major}.${versi
<include name="BUILDING.txt" />
<include name="CONTRIBUTING.md"/>
<exclude name="bin/service.bat"/>
<exclude name="bin/*.sh"/>
<exclude name="bin/*.exe"/>
<exclude name="bin/*.dll"/>
</zipfileset>
<!-- These need to be added after the bin directory is added else the -->
<!-- bin directory will pick up the wrong permissions. -->
<zipfileset dir="${tomcat.dist}" dirmode="750" filemode="750" prefix="${final.name}">
<include name="bin/*.sh"/>
</zipfileset>
</zip>

<hashAndSign file="${tomcat.release}/v${version}/bin/${final.name}.zip" />
Expand Down
6 changes: 6 additions & 0 deletions webapps/docs/changelog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,12 @@
(<code>output/coverage/jacoco.xml</code>) alongside the existing HTML
report when the build is run with code coverage enabled. (dsoumis)
</add>
<update>
<bug>69902</bug>: Change the ZIP distribution to store the same file
and directory permissions as the tar.gz distribution so that the
scripts in <code>bin</code> are executable when the archive is
extracted on a Unix platform.
</update>
<!-- Entries for backport and removal before 12.0.0-M1 below this line -->
</changelog>
</subsection>
Expand Down