[ 
http://jira.codehaus.org/browse/MWEBSTART-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Tuzhilov updated MWEBSTART-127:
---------------------------------------

    Attachment: JarUnsignMojo.patch

Here is my fix to this problem. In the JarUnsignMojo class, JarArchiver is used 
to package the jar. I simply added the config value "mergewithoutmain" to the 
jarArchiver to merge the changes of the manifest.mf, otherwise the default 
value is "skip" which results into creating a new (clean) manifest.mf file.

JarArchiver.FilesetManifestConfig config = new 
JarArchiver.FilesetManifestConfig();
config.setValue("mergewithoutmain");
jarArchiver.setFilesetmanifest(config);

I hope this helps. 


> unsignAlreadySignedJars sometimes removes manifest information
> --------------------------------------------------------------
>
>                 Key: MWEBSTART-127
>                 URL: http://jira.codehaus.org/browse/MWEBSTART-127
>             Project: Maven 2.x Webstart Plugin
>          Issue Type: Bug
>          Components: sign
>    Affects Versions: 1.0-alpha-2
>         Environment: windows vista 32
>            Reporter: eli groesbeck
>         Attachments: JarUnsignMojo.patch
>
>
> If a jar contains a manifest file sometimes the manifest information is lost 
> during resigning.  For example, eclipse.core.commands-3.3.0 always loses the 
> bundle information when unsignAlreadySignedJars is set to true. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to