Issue Type: Improvement Improvement
Affects Versions: 1.0-beta-3
Assignee: Unassigned
Components: pack
Created: 25/Jun/13 8:21 AM
Description:

there is no such option available in case of pack200 usage to skip particular files/packages during compression.
As pack200 has option:

--pass-file= file, -P file

    Passes the specified file without compression. If file ends with a /, all files in the directory are passed through without packing. This option may be specified multiple times.

My motivation is that running JDK7u25 trying to pack jaxb-osgi-2.2.4-1.jar (available here:http://repo1.maven.org/maven2/com/sun/xml/bind/jaxb-osgi/2.2.4-1/jaxb-osgi-2.2.4-1.jar) causes error that can be bypassed by skipping specific classes only:

pack200 --repack jaxb-osgi-2.2.4-1.jar
Exception in thread "main" java.io.IOException: null ref
        at com.sun.java.util.jar.pack.NativeUnpack.getNextFile(Native Method)
        at com.sun.java.util.jar.pack.NativeUnpack.run(NativeUnpack.java:210)
        at com.sun.java.util.jar.pack.NativeUnpack.run(NativeUnpack.java:242)
        at com.sun.java.util.jar.pack.UnpackerImpl.unpack(UnpackerImpl.java:136)
        at com.sun.java.util.jar.pack.Driver.main(Driver.java:354)

where solution is to run:

pack200 --repack --pass-file=com/sun/codemodel/ --pass-file=com/sun/tools/xjc/reader/xmlschema/ct/ jaxb-osgi-2.2.4-1.jar

See the patch attached for solution. However please note that it affects the configuration:

old way
<configuration>
...
<pack200>true</pack200>
...
</configuration>
new way
<configuration>
...
<pack200>
  <enabled>true</enabled>
  <passFiles>
    <passFile>com/sun/codemodel/</passFile>
    <passFile>com/sun/tools/xjc/reader/xmlschema/ct/</passFile>
  </passFiles>
</pack200>
...
</configuration>
Environment: Fedora 17, 64bit
Oracle JDK 7u25
Project: Maven 2.x Webstart Plugin
Priority: Minor Minor
Reporter: Peter B.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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