Re: [h2] jar missing directory entries

2014-12-09 Thread Thomas Mueller
Hi, I don't think this is in the h2 jar file. The exceptions message says there is a directory entry "META-INF/services", which contains data. But directory entries in the jar file may not contain data. I don't think the h2.jar file contains such an entry, because as you already found out, the h2

Re: [h2] jar missing directory entries

2014-12-05 Thread Brian Craft
Exception in thread "main" java.lang.IllegalArgumentException: Non-empty directory: META-INF/services at com.sun.java.util.jar.pack.PackerImpl$DoPack.readFile(PackerImpl.java:546) at com.sun.java.util.jar.pack.PackerImpl$DoPack.run(PackerImpl.java:492) at com.sun.java.uti

Re: [h2] jar missing directory entries

2014-12-05 Thread Thomas Mueller
Hi, The H2 jar files are built using the java.util.jar.JarOutputStream, and so far I didn't know about any problems with this approach. I think I found the place where pack200 throws this exception: http://www.docjar.com/html/api/com/sun/java/util/jar/pack/PackerImpl.java.html Package.File file

[h2] jar missing directory entries

2014-12-04 Thread Brian Craft
The h2 jar doesn't have entries for directories. This seems to be causing problems with down-stream build tools. Building an uber-jar, then passing through pack200, it throws a "non-empty directory" exception. I suspect it's the uber-jar build that is broken, but am also wondering why the h2 ja