Mark,

On 3/23/21 09:45, Mark Thomas wrote:
On 23/03/2021 13:15, Mark Thomas wrote:

<snip/>

I did a little more digging. There is an assumption in JarInputStream that /META-INF/MANIFEST.MF is either first or only preceded by /META-INF/

I suspect I'm going to need to revert the <jar .../> to <zip .../> changes. I'm currently looking into alternatives.

Aha!

There is an undocumented attribute on the Zip task (and hence inherited by the Jar task) that can be used to specify the last modified time for all Jar entries.

I'll revert the <jar .../> to <zip .../> and use this attribute instead.

Can a <fileset> type thing also not be given instructions for how to order things?

I think if we have e.g.

<jar>
  <fileset [manifest] />
  <fileset [other stuff] />
  ...
</jar>

Then the manifest will definitely be first. Maybe <fileset> can even sort its entries explicitly if it doesn't already do so.

-chris

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

Reply via email to