Amazing digging; thanks a lot. At least for maven's code, introducing the concept of a "root" stream that will be the start of the physical zip stream can simplify things quite a lot.
Kristian 2014-12-16 6:48 GMT+01:00 Stefan Bodewig <bode...@apache.org>: > On 2014-12-15, Kristian Rosenvold wrote: > >> There is also the issue of determining if the MANIFEST.MF file really >> needs to be the first file in the jar, which puts an interesting >> constraint on the parallelism. > > I've found this for Ant which caused us to implement that logic (in 2001): > > https://issues.apache.org/bugzilla/show_bug.cgi?id=3287 > > It seems this is an implementation detail of JarInputStream that Ant and > Maven have learned to cope with. And it still seems to be true: > > http://hg.openjdk.java.net/jdk9/jdk9/jdk/file/9ade71a206f9/src/java.base/share/classes/java/util/jar/JarInputStream.java#l79 > > I wouldn't be suprised if other tools relied on it as well. > > Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org