buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hugues Malphettes (JIRA)" <j...@apache.org>
Subject [jira] Commented: (BUILDR-517) including a folder at the root of a jar using 'as' makes a corrupted jar.
Date Mon, 11 Oct 2010 18:15:39 GMT

    [ https://issues.apache.org/jira/browse/BUILDR-517?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12919931#action_12919931
] 

Hugues Malphettes commented on BUILDR-517:
------------------------------------------

This issue affects: http://github.com/intalio/process-designer
The workaround is here for the OSGi bundle: http://github.com/intalio/process-designer/commit/2ba57c8fe70dad471af77060cc8c61b7ada5e444
I was not able to find a workaround to the war packaging: here are the permissions reported
on the WEB-INF/classes once the generated war file is unzipped in the tmp folder:

hmalphettes@hmalphettes-laptop:~/proj/helium/bpm/process-designer/cloud.designer$ rm -rf tmp
rm: cannot remove `tmp/WEB-INF/classes/de': Permission denied
rm: cannot remove `tmp/WEB-INF/classes/org': Permission denied
rm: cannot remove `tmp/WEB-INF/classes/com': Permission denied
hmalphettes@hmalphettes-laptop:~/proj/helium/bpm/process-designer/cloud.designer$ ls -la tmp/WEB-INF/classes/
ls: cannot access tmp/WEB-INF/classes/..: Permission denied
ls: cannot access tmp/WEB-INF/classes/.: Permission denied
ls: cannot access tmp/WEB-INF/classes/de: Permission denied
ls: cannot access tmp/WEB-INF/classes/org: Permission denied
ls: cannot access tmp/WEB-INF/classes/com: Permission denied
total 0
d????????? ? ? ? ?                ? .
d????????? ? ? ? ?                ? ..
d????????? ? ? ? ?                ? com
d????????? ? ? ? ?                ? de
d????????? ? ? ? ?                ? org


> including a folder at the root of a jar using 'as' makes a corrupted jar.
> -------------------------------------------------------------------------
>
>                 Key: BUILDR-517
>                 URL: https://issues.apache.org/jira/browse/BUILDR-517
>             Project: Buildr
>          Issue Type: Bug
>          Components: Core features
>    Affects Versions: 1.4.2
>            Reporter: Hugues Malphettes
>            Assignee: Antoine Toulme
>            Priority: Blocker
>             Fix For: 1.4.3
>
>
>  package(:jar).include(_("src/main/foo"), :as=>"foo").with :manifest => man
> Produced a corrupted jar:
> when unzipped on a linux machine via the command line the 'x' permission of the foo directory
is missing the 'x' permission:
> > ls -la
> drw-r--r-- 6 hmalphettes hmalphettes    4096 2010-09-24 17:31 foo
> Workarounds:
>  package(:jar).include(_("src/main/foo"), :path=>"/").with :manifest => man
> or
>  package(:jar).include(_("src/main/foo"), :as=>"foo/").with :manifest => man
> will produce:
> > ls -la
> drwxr-xr-x 6 hmalphettes hmalphettes    4096 2010-09-24 17:33 foo

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message