runt18 / jarjar

Automatically exported from code.google.com/p/jarjar
0 stars 0 forks source link

Fix up Export-Package in MANIFEST.MF when running jar jar. #51

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run jar jar on an eclipse plugin jar.

I'd hope that it would fix the packages up in Export-Package in 
META-INF/MANIFEST.MF but it doesn't touch it.  This is somewhat tricky to do as 
there are often line breaks in the middle of package declarations.

For example I'm trying to jarjar a guava 10 plugin and the "Export-Package" 
section contains the string "com.goo\n gle.common.base", i.e. an embedded line 
break and a whitespace.  My initial attempt to fix this with a regexp 
consequently didn't work.

Similar to issue 39.

Using jarjar-1.0 and Fedora 3.3.0-4.fc16.x86_64.

Original issue reported on code.google.com by MrChrisP...@googlemail.com on 26 Apr 2012 at 10:31