You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Christopher Schultz <ch...@christopherschultz.net> on 2025/10/15 13:39:36 UTC

[PROPOSAL] Change embedded ZIP packaging to put zipped files into a subdirectory

All,

If you do a release build today and then:

$ tar tvzf bin/embed/apache-tomcat-10.1.47-embed.tar.gz
-rw-r--r--  0 0      0       60393 Oct  2 08:03 
apache-tomcat-10.1.47-embed/LICENSE
-rw-r--r--  0 0      0        2333 Oct  2 08:03 
apache-tomcat-10.1.47-embed/NOTICE
-rw-r--r--  0 0      0       14237 Oct  2 08:03 
apache-tomcat-10.1.47-embed/annotations-api.jar
-rw-r--r--  0 0      0     3160927 Oct  2 08:03 
apache-tomcat-10.1.47-embed/ecj-4.27.jar
-rw-r--r--  0 0      0      348254 Oct  2 08:03 
apache-tomcat-10.1.47-embed/tomcat-dbcp.jar
-rw-r--r--  0 0      0     3650904 Oct  2 08:03 
apache-tomcat-10.1.47-embed/tomcat-embed-core.jar
-rw-r--r--  0 0      0      264304 Oct  2 08:03 
apache-tomcat-10.1.47-embed/tomcat-embed-el.jar
-rw-r--r--  0 0      0      660430 Oct  2 08:03 
apache-tomcat-10.1.47-embed/tomcat-embed-jasper.jar
-rw-r--r--  0 0      0     2354824 Oct  2 08:03 
apache-tomcat-10.1.47-embed/tomcat-embed-programmatic.jar
-rw-r--r--  0 0      0      283936 Oct  2 08:03 
apache-tomcat-10.1.47-embed/tomcat-embed-websocket.jar


And then:

$ unzip -v bin/embed/apache-tomcat-10.1.47-embed.zip
Archive:  bin/embed/apache-tomcat-10.1.47-embed.zip
  Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
--------  ------  ------- ---- ---------- ----- --------  ----
    61536  Defl:N    16286  74% 10-02-2025 12:03 bf9108d2  LICENSE
     2401  Defl:N      941  61% 10-02-2025 12:03 fc7ba3fd  NOTICE
    14237  Defl:N    11241  21% 10-02-2025 12:03 4622dd17 
annotations-api.jar
  3160927  Defl:N  3012755   5% 10-02-2025 12:03 90494674  ecj-4.27.jar
   348254  Defl:N   324796   7% 10-02-2025 12:03 d57eecef  tomcat-dbcp.jar
  3650904  Defl:N  3413048   7% 10-02-2025 12:03 f4cde31d 
tomcat-embed-core.jar
   264304  Defl:N   246087   7% 10-02-2025 12:03 d70890e5 
tomcat-embed-el.jar
   660430  Defl:N   615412   7% 10-02-2025 12:03 9b39cc5e 
tomcat-embed-jasper.jar
  2354824  Defl:N  2194194   7% 10-02-2025 12:03 975189de 
tomcat-embed-programmatic.jar
   283936  Defl:N   257253   9% 10-02-2025 12:03 74101acf 
tomcat-embed-websocket.jar
--------          -------  ---                            -------
10801753         10092013   7%                            10 files

The tarball expands into a subdirectory matching the release, while the 
ZIP file does not.

The Apache Trusted Release platform is flagging this as a packaging 
error, and I tend to agree with its assessment.

The only problem is that user expectations may have been established 
where the files are NOT in a subdirectory.

Does anyone have any thoughts on the above?

The patch I'm proposing is this:

diff --git a/build.xml b/build.xml
index 62e4cb815c..dfe1f770ed 100644
--- a/build.xml
+++ b/build.xml
@@ -1875,13 +1875,13 @@
      <zip destfile="${tomcat.embed}/${final.name}-embed.zip"
           modificationtime="${tstamp.iso.release}"
           encoding="UTF8">
-      <fileset dir="${tomcat.embed}">
+      <zipfileset dir="${tomcat.embed}" prefix="${final.name}-embed">
          <include name="**" />
          <exclude name="*.asc" />
          <exclude name="*.sha512" />
          <exclude name="*.zip" />
          <exclude name="*.tar.gz" />
-      </fileset>
+      </zipfileset>
      </zip>
      <hashAndSign file="${tomcat.embed}/${final.name}-embed.zip" />

-chris


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: [PROPOSAL] Change embedded ZIP packaging to put zipped files into a subdirectory

Posted by Coty Sutherland <cs...@apache.org>.
On Wed, Oct 15, 2025 at 9:40 AM Christopher Schultz <
chris@christopherschultz.net> wrote:

> All,
>
> If you do a release build today and then:
>
> $ tar tvzf bin/embed/apache-tomcat-10.1.47-embed.tar.gz
> -rw-r--r--  0 0      0       60393 Oct  2 08:03
> apache-tomcat-10.1.47-embed/LICENSE
> -rw-r--r--  0 0      0        2333 Oct  2 08:03
> apache-tomcat-10.1.47-embed/NOTICE
> -rw-r--r--  0 0      0       14237 Oct  2 08:03
> apache-tomcat-10.1.47-embed/annotations-api.jar
> -rw-r--r--  0 0      0     3160927 Oct  2 08:03
> apache-tomcat-10.1.47-embed/ecj-4.27.jar
> -rw-r--r--  0 0      0      348254 Oct  2 08:03
> apache-tomcat-10.1.47-embed/tomcat-dbcp.jar
> -rw-r--r--  0 0      0     3650904 Oct  2 08:03
> apache-tomcat-10.1.47-embed/tomcat-embed-core.jar
> -rw-r--r--  0 0      0      264304 Oct  2 08:03
> apache-tomcat-10.1.47-embed/tomcat-embed-el.jar
> -rw-r--r--  0 0      0      660430 Oct  2 08:03
> apache-tomcat-10.1.47-embed/tomcat-embed-jasper.jar
> -rw-r--r--  0 0      0     2354824 Oct  2 08:03
> apache-tomcat-10.1.47-embed/tomcat-embed-programmatic.jar
> -rw-r--r--  0 0      0      283936 Oct  2 08:03
> apache-tomcat-10.1.47-embed/tomcat-embed-websocket.jar
>
>
> And then:
>
> $ unzip -v bin/embed/apache-tomcat-10.1.47-embed.zip
> Archive:  bin/embed/apache-tomcat-10.1.47-embed.zip
>   Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
> --------  ------  ------- ---- ---------- ----- --------  ----
>     61536  Defl:N    16286  74% 10-02-2025 12:03 bf9108d2  LICENSE
>      2401  Defl:N      941  61% 10-02-2025 12:03 fc7ba3fd  NOTICE
>     14237  Defl:N    11241  21% 10-02-2025 12:03 4622dd17
> annotations-api.jar
>   3160927  Defl:N  3012755   5% 10-02-2025 12:03 90494674  ecj-4.27.jar
>    348254  Defl:N   324796   7% 10-02-2025 12:03 d57eecef  tomcat-dbcp.jar
>   3650904  Defl:N  3413048   7% 10-02-2025 12:03 f4cde31d
> tomcat-embed-core.jar
>    264304  Defl:N   246087   7% 10-02-2025 12:03 d70890e5
> tomcat-embed-el.jar
>    660430  Defl:N   615412   7% 10-02-2025 12:03 9b39cc5e
> tomcat-embed-jasper.jar
>   2354824  Defl:N  2194194   7% 10-02-2025 12:03 975189de
> tomcat-embed-programmatic.jar
>    283936  Defl:N   257253   9% 10-02-2025 12:03 74101acf
> tomcat-embed-websocket.jar
> --------          -------  ---                            -------
> 10801753         10092013   7%                            10 files
>
> The tarball expands into a subdirectory matching the release, while the
> ZIP file does not.
>
> The Apache Trusted Release platform is flagging this as a packaging
> error, and I tend to agree with its assessment.
>
> The only problem is that user expectations may have been established
> where the files are NOT in a subdirectory.
>
> Does anyone have any thoughts on the above?
>

+1 for fixing this inconsistency in tomcat 12 so that we don't break any
current installs, maybe 11 if it's an aggressive enough warning from the
platform.


>
> The patch I'm proposing is this:
>
> diff --git a/build.xml b/build.xml
> index 62e4cb815c..dfe1f770ed 100644
> --- a/build.xml
> +++ b/build.xml
> @@ -1875,13 +1875,13 @@
>       <zip destfile="${tomcat.embed}/${final.name}-embed.zip"
>            modificationtime="${tstamp.iso.release}"
>            encoding="UTF8">
> -      <fileset dir="${tomcat.embed}">
> +      <zipfileset dir="${tomcat.embed}" prefix="${final.name}-embed">
>           <include name="**" />
>           <exclude name="*.asc" />
>           <exclude name="*.sha512" />
>           <exclude name="*.zip" />
>           <exclude name="*.tar.gz" />
> -      </fileset>
> +      </zipfileset>
>       </zip>
>       <hashAndSign file="${tomcat.embed}/${final.name}-embed.zip" />
>
> -chris
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>

Re: [PROPOSAL] Change embedded ZIP packaging to put zipped files into a subdirectory

Posted by Mark Thomas <ma...@apache.org>.
On 15/10/2025 14:39, Christopher Schultz wrote:

<snip/>

> The tarball expands into a subdirectory matching the release, while the 
> ZIP file does not.
> 
> The Apache Trusted Release platform is flagging this as a packaging 
> error, and I tend to agree with its assessment.
> 
> The only problem is that user expectations may have been established 
> where the files are NOT in a subdirectory.
> 
> Does anyone have any thoughts on the above?

I agree it is unexpected.

Most users of embedded use it via Maven. There are only a few thousand 
downloads a month of the .zip (compared to ~20 million of the embedded 
core JAR via central)

A number of tools extract the files into the expected subdirectory anyway.

I'm thinking definitely fix 12. Maybe fix 11 and see if anyone complains 
before back-porting?

> The patch I'm proposing is this:

+1

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: [PROPOSAL] Change embedded ZIP packaging to put zipped files into a subdirectory

Posted by Christopher Schultz <ch...@christopherschultz.net>.
All,

On 10/13/26 4:31 PM, Mark Thomas wrote:
> +1

Done in Tomcat 12.

We can decide if we want to back-port any of this to Tomcat 11.

-chris

> On 12/10/2026 16:42, Christopher Schultz wrote:
>> All,
>>
>> Resurrecting this proposal; it's something that could be done during 
>> the hackathon in Glasgow (or those "remote hackathon" attendees :)
>>
>> -chris
>>
>> On 10/15/25 9:39 AM, Christopher Schultz wrote:
>>> All,
>>>
>>> If you do a release build today and then:
>>>
>>> $ tar tvzf bin/embed/apache-tomcat-10.1.47-embed.tar.gz
>>> -rw-r--r--  0 0      0       60393 Oct  2 08:03 apache- 
>>> tomcat-10.1.47- embed/LICENSE
>>> -rw-r--r--  0 0      0        2333 Oct  2 08:03 apache- 
>>> tomcat-10.1.47- embed/NOTICE
>>> -rw-r--r--  0 0      0       14237 Oct  2 08:03 apache- 
>>> tomcat-10.1.47- embed/annotations-api.jar
>>> -rw-r--r--  0 0      0     3160927 Oct  2 08:03 apache- 
>>> tomcat-10.1.47- embed/ecj-4.27.jar
>>> -rw-r--r--  0 0      0      348254 Oct  2 08:03 apache- 
>>> tomcat-10.1.47- embed/tomcat-dbcp.jar
>>> -rw-r--r--  0 0      0     3650904 Oct  2 08:03 apache- 
>>> tomcat-10.1.47- embed/tomcat-embed-core.jar
>>> -rw-r--r--  0 0      0      264304 Oct  2 08:03 apache- 
>>> tomcat-10.1.47- embed/tomcat-embed-el.jar
>>> -rw-r--r--  0 0      0      660430 Oct  2 08:03 apache- 
>>> tomcat-10.1.47- embed/tomcat-embed-jasper.jar
>>> -rw-r--r--  0 0      0     2354824 Oct  2 08:03 apache- 
>>> tomcat-10.1.47- embed/tomcat-embed-programmatic.jar
>>> -rw-r--r--  0 0      0      283936 Oct  2 08:03 apache- 
>>> tomcat-10.1.47- embed/tomcat-embed-websocket.jar
>>>
>>>
>>> And then:
>>>
>>> $ unzip -v bin/embed/apache-tomcat-10.1.47-embed.zip
>>> Archive:  bin/embed/apache-tomcat-10.1.47-embed.zip
>>>   Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
>>> --------  ------  ------- ---- ---------- ----- --------  ----
>>>     61536  Defl:N    16286  74% 10-02-2025 12:03 bf9108d2  LICENSE
>>>      2401  Defl:N      941  61% 10-02-2025 12:03 fc7ba3fd  NOTICE
>>>     14237  Defl:N    11241  21% 10-02-2025 12:03 4622dd17 
>>> annotations- api.jar
>>>   3160927  Defl:N  3012755   5% 10-02-2025 12:03 90494674  ecj-4.27.jar
>>>    348254  Defl:N   324796   7% 10-02-2025 12:03 d57eecef  tomcat- 
>>> dbcp.jar
>>>   3650904  Defl:N  3413048   7% 10-02-2025 12:03 f4cde31d tomcat- 
>>> embed- core.jar
>>>    264304  Defl:N   246087   7% 10-02-2025 12:03 d70890e5 tomcat- 
>>> embed- el.jar
>>>    660430  Defl:N   615412   7% 10-02-2025 12:03 9b39cc5e tomcat- 
>>> embed- jasper.jar
>>>   2354824  Defl:N  2194194   7% 10-02-2025 12:03 975189de tomcat- 
>>> embed- programmatic.jar
>>>    283936  Defl:N   257253   9% 10-02-2025 12:03 74101acf tomcat- 
>>> embed- websocket.jar
>>> --------          -------  ---                            -------
>>> 10801753         10092013   7%                            10 files
>>>
>>> The tarball expands into a subdirectory matching the release, while 
>>> the ZIP file does not.
>>>
>>> The Apache Trusted Release platform is flagging this as a packaging 
>>> error, and I tend to agree with its assessment.
>>>
>>> The only problem is that user expectations may have been established 
>>> where the files are NOT in a subdirectory.
>>>
>>> Does anyone have any thoughts on the above?
>>>
>>> The patch I'm proposing is this:
>>>
>>> diff --git a/build.xml b/build.xml
>>> index 62e4cb815c..dfe1f770ed 100644
>>> --- a/build.xml
>>> +++ b/build.xml
>>> @@ -1875,13 +1875,13 @@
>>>       <zip destfile="${tomcat.embed}/${final.name}-embed.zip"
>>>            modificationtime="${tstamp.iso.release}"
>>>            encoding="UTF8">
>>> -      <fileset dir="${tomcat.embed}">
>>> +      <zipfileset dir="${tomcat.embed}" prefix="${final.name}-embed">
>>>           <include name="**" />
>>>           <exclude name="*.asc" />
>>>           <exclude name="*.sha512" />
>>>           <exclude name="*.zip" />
>>>           <exclude name="*.tar.gz" />
>>> -      </fileset>
>>> +      </zipfileset>
>>>       </zip>
>>>       <hashAndSign file="${tomcat.embed}/${final.name}-embed.zip" />
>>>
>>> -chris
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: dev-help@tomcat.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: [PROPOSAL] Change embedded ZIP packaging to put zipped files into a subdirectory

Posted by Mark Thomas <ma...@apache.org>.
+1

Mark


On 12/10/2026 16:42, Christopher Schultz wrote:
> All,
> 
> Resurrecting this proposal; it's something that could be done during the 
> hackathon in Glasgow (or those "remote hackathon" attendees :)
> 
> -chris
> 
> On 10/15/25 9:39 AM, Christopher Schultz wrote:
>> All,
>>
>> If you do a release build today and then:
>>
>> $ tar tvzf bin/embed/apache-tomcat-10.1.47-embed.tar.gz
>> -rw-r--r--  0 0      0       60393 Oct  2 08:03 apache-tomcat-10.1.47- 
>> embed/LICENSE
>> -rw-r--r--  0 0      0        2333 Oct  2 08:03 apache-tomcat-10.1.47- 
>> embed/NOTICE
>> -rw-r--r--  0 0      0       14237 Oct  2 08:03 apache-tomcat-10.1.47- 
>> embed/annotations-api.jar
>> -rw-r--r--  0 0      0     3160927 Oct  2 08:03 apache-tomcat-10.1.47- 
>> embed/ecj-4.27.jar
>> -rw-r--r--  0 0      0      348254 Oct  2 08:03 apache-tomcat-10.1.47- 
>> embed/tomcat-dbcp.jar
>> -rw-r--r--  0 0      0     3650904 Oct  2 08:03 apache-tomcat-10.1.47- 
>> embed/tomcat-embed-core.jar
>> -rw-r--r--  0 0      0      264304 Oct  2 08:03 apache-tomcat-10.1.47- 
>> embed/tomcat-embed-el.jar
>> -rw-r--r--  0 0      0      660430 Oct  2 08:03 apache-tomcat-10.1.47- 
>> embed/tomcat-embed-jasper.jar
>> -rw-r--r--  0 0      0     2354824 Oct  2 08:03 apache-tomcat-10.1.47- 
>> embed/tomcat-embed-programmatic.jar
>> -rw-r--r--  0 0      0      283936 Oct  2 08:03 apache-tomcat-10.1.47- 
>> embed/tomcat-embed-websocket.jar
>>
>>
>> And then:
>>
>> $ unzip -v bin/embed/apache-tomcat-10.1.47-embed.zip
>> Archive:  bin/embed/apache-tomcat-10.1.47-embed.zip
>>   Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
>> --------  ------  ------- ---- ---------- ----- --------  ----
>>     61536  Defl:N    16286  74% 10-02-2025 12:03 bf9108d2  LICENSE
>>      2401  Defl:N      941  61% 10-02-2025 12:03 fc7ba3fd  NOTICE
>>     14237  Defl:N    11241  21% 10-02-2025 12:03 4622dd17 annotations- 
>> api.jar
>>   3160927  Defl:N  3012755   5% 10-02-2025 12:03 90494674  ecj-4.27.jar
>>    348254  Defl:N   324796   7% 10-02-2025 12:03 d57eecef  tomcat- 
>> dbcp.jar
>>   3650904  Defl:N  3413048   7% 10-02-2025 12:03 f4cde31d tomcat- 
>> embed- core.jar
>>    264304  Defl:N   246087   7% 10-02-2025 12:03 d70890e5 tomcat- 
>> embed- el.jar
>>    660430  Defl:N   615412   7% 10-02-2025 12:03 9b39cc5e tomcat- 
>> embed- jasper.jar
>>   2354824  Defl:N  2194194   7% 10-02-2025 12:03 975189de tomcat- 
>> embed- programmatic.jar
>>    283936  Defl:N   257253   9% 10-02-2025 12:03 74101acf tomcat- 
>> embed- websocket.jar
>> --------          -------  ---                            -------
>> 10801753         10092013   7%                            10 files
>>
>> The tarball expands into a subdirectory matching the release, while 
>> the ZIP file does not.
>>
>> The Apache Trusted Release platform is flagging this as a packaging 
>> error, and I tend to agree with its assessment.
>>
>> The only problem is that user expectations may have been established 
>> where the files are NOT in a subdirectory.
>>
>> Does anyone have any thoughts on the above?
>>
>> The patch I'm proposing is this:
>>
>> diff --git a/build.xml b/build.xml
>> index 62e4cb815c..dfe1f770ed 100644
>> --- a/build.xml
>> +++ b/build.xml
>> @@ -1875,13 +1875,13 @@
>>       <zip destfile="${tomcat.embed}/${final.name}-embed.zip"
>>            modificationtime="${tstamp.iso.release}"
>>            encoding="UTF8">
>> -      <fileset dir="${tomcat.embed}">
>> +      <zipfileset dir="${tomcat.embed}" prefix="${final.name}-embed">
>>           <include name="**" />
>>           <exclude name="*.asc" />
>>           <exclude name="*.sha512" />
>>           <exclude name="*.zip" />
>>           <exclude name="*.tar.gz" />
>> -      </fileset>
>> +      </zipfileset>
>>       </zip>
>>       <hashAndSign file="${tomcat.embed}/${final.name}-embed.zip" />
>>
>> -chris
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: [PROPOSAL] Change embedded ZIP packaging to put zipped files into a subdirectory

Posted by Christopher Schultz <ch...@christopherschultz.net>.
All,

Resurrecting this proposal; it's something that could be done during the 
hackathon in Glasgow (or those "remote hackathon" attendees :)

-chris

On 10/15/25 9:39 AM, Christopher Schultz wrote:
> All,
> 
> If you do a release build today and then:
> 
> $ tar tvzf bin/embed/apache-tomcat-10.1.47-embed.tar.gz
> -rw-r--r--  0 0      0       60393 Oct  2 08:03 apache-tomcat-10.1.47- 
> embed/LICENSE
> -rw-r--r--  0 0      0        2333 Oct  2 08:03 apache-tomcat-10.1.47- 
> embed/NOTICE
> -rw-r--r--  0 0      0       14237 Oct  2 08:03 apache-tomcat-10.1.47- 
> embed/annotations-api.jar
> -rw-r--r--  0 0      0     3160927 Oct  2 08:03 apache-tomcat-10.1.47- 
> embed/ecj-4.27.jar
> -rw-r--r--  0 0      0      348254 Oct  2 08:03 apache-tomcat-10.1.47- 
> embed/tomcat-dbcp.jar
> -rw-r--r--  0 0      0     3650904 Oct  2 08:03 apache-tomcat-10.1.47- 
> embed/tomcat-embed-core.jar
> -rw-r--r--  0 0      0      264304 Oct  2 08:03 apache-tomcat-10.1.47- 
> embed/tomcat-embed-el.jar
> -rw-r--r--  0 0      0      660430 Oct  2 08:03 apache-tomcat-10.1.47- 
> embed/tomcat-embed-jasper.jar
> -rw-r--r--  0 0      0     2354824 Oct  2 08:03 apache-tomcat-10.1.47- 
> embed/tomcat-embed-programmatic.jar
> -rw-r--r--  0 0      0      283936 Oct  2 08:03 apache-tomcat-10.1.47- 
> embed/tomcat-embed-websocket.jar
> 
> 
> And then:
> 
> $ unzip -v bin/embed/apache-tomcat-10.1.47-embed.zip
> Archive:  bin/embed/apache-tomcat-10.1.47-embed.zip
>   Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
> --------  ------  ------- ---- ---------- ----- --------  ----
>     61536  Defl:N    16286  74% 10-02-2025 12:03 bf9108d2  LICENSE
>      2401  Defl:N      941  61% 10-02-2025 12:03 fc7ba3fd  NOTICE
>     14237  Defl:N    11241  21% 10-02-2025 12:03 4622dd17 annotations- 
> api.jar
>   3160927  Defl:N  3012755   5% 10-02-2025 12:03 90494674  ecj-4.27.jar
>    348254  Defl:N   324796   7% 10-02-2025 12:03 d57eecef  tomcat-dbcp.jar
>   3650904  Defl:N  3413048   7% 10-02-2025 12:03 f4cde31d tomcat-embed- 
> core.jar
>    264304  Defl:N   246087   7% 10-02-2025 12:03 d70890e5 tomcat-embed- 
> el.jar
>    660430  Defl:N   615412   7% 10-02-2025 12:03 9b39cc5e tomcat-embed- 
> jasper.jar
>   2354824  Defl:N  2194194   7% 10-02-2025 12:03 975189de tomcat-embed- 
> programmatic.jar
>    283936  Defl:N   257253   9% 10-02-2025 12:03 74101acf tomcat-embed- 
> websocket.jar
> --------          -------  ---                            -------
> 10801753         10092013   7%                            10 files
> 
> The tarball expands into a subdirectory matching the release, while the 
> ZIP file does not.
> 
> The Apache Trusted Release platform is flagging this as a packaging 
> error, and I tend to agree with its assessment.
> 
> The only problem is that user expectations may have been established 
> where the files are NOT in a subdirectory.
> 
> Does anyone have any thoughts on the above?
> 
> The patch I'm proposing is this:
> 
> diff --git a/build.xml b/build.xml
> index 62e4cb815c..dfe1f770ed 100644
> --- a/build.xml
> +++ b/build.xml
> @@ -1875,13 +1875,13 @@
>       <zip destfile="${tomcat.embed}/${final.name}-embed.zip"
>            modificationtime="${tstamp.iso.release}"
>            encoding="UTF8">
> -      <fileset dir="${tomcat.embed}">
> +      <zipfileset dir="${tomcat.embed}" prefix="${final.name}-embed">
>           <include name="**" />
>           <exclude name="*.asc" />
>           <exclude name="*.sha512" />
>           <exclude name="*.zip" />
>           <exclude name="*.tar.gz" />
> -      </fileset>
> +      </zipfileset>
>       </zip>
>       <hashAndSign file="${tomcat.embed}/${final.name}-embed.zip" />
> 
> -chris
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org