Hi, I am trying to use tomee:exec to produce a self-contained jar under
Windows, but running this under Linux. The tomee.zip file produced in the
jar uses backslash for directory separators which doesn't unpack correctly
under Linux. For example the Zip entry 'conf\tomee.xml' is unpacked to a
file called 'conf\tomee.xml' rather than a file called 'tomee.xml' in the
directory conf.

>From what I have read a Zip file should always use forward slashes for
directory separators (see section 4.4.17 at
https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT), but
org.apache.openejb.maven.plugin.util.Zips uses the platform directory
separator. I have implemented a fix for Zips.java and tested this
stand-alone, but currently don't have a fully set up environment to build
and test the Maven plugin.

I have filed a bug with a patch to fix this and a unit test. See
https://issues.apache.org/jira/browse/TOMEE-1638

Regards,
Dave



--
View this message in context: 
http://tomee-openejb.979440.n4.nabble.com/tomee-exec-on-Windows-produces-invalid-tomee-zip-due-to-backslash-directory-separators-tp4676522.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to