You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2015/10/17 12:22:05 UTC

[jira] [Commented] (TOMEE-1638) tomee:exec on Windows produces invalid tomee.zip due to backslash directory separators

    [ https://issues.apache.org/jira/browse/TOMEE-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14961836#comment-14961836 ] 

Romain Manni-Bucau commented on TOMEE-1638:
-------------------------------------------

wonder if backporting https://github.com/apache/tomee/blob/master/maven/tomee-maven-plugin/src/main/java/org/apache/openejb/maven/plugin/BuildTomEEMojo.java wouldnt solve it

> tomee:exec on Windows produces invalid tomee.zip due to backslash directory separators
> --------------------------------------------------------------------------------------
>
>                 Key: TOMEE-1638
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1638
>             Project: TomEE
>          Issue Type: Bug
>          Components: TomEE Maven Plugin
>    Affects Versions: 1.7.2
>         Environment: Windows
>            Reporter: David Eaves
>            Priority: Minor
>         Attachments: Zips.java, Zips.java.patch, ZipsTest.java
>
>
> The tomee:exec target produces an invalid tomee.zip file within the standalone jar when run under Windows. This prevents the standalone jar from being run under Linux.
> This issue is caused by the use of platform directory separators in the Zip entry names rather than forward slashes. See section 4.4.17 at https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT
> The offending code is in org.apache.openejb.maven.plugin.util.Zips. I have produced a fix and tested this stand-alone, but not in the context of the plugin.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)