Bug 311376 - Problem exporting jar with manifest.mf
Summary: Problem exporting jar with manifest.mf
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.5.2   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-03 10:20 EDT by w.ankudin CLA
Modified: 2010-05-03 12:52 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description w.ankudin CLA 2010-05-03 10:20:36 EDT
When exporting a simple OSGI Bundle as a jar with a pre written manifest.mf, the exporter strips away the last line of the manifest file. 
i.e if the last line is Import-Package: ... this line will not appear in the exported META-INF/MANIFEST.MF

To have it exported there is a need to add an extra new empty line at the end of the manifest.mf file.


-- Configuration Details --
Product: Eclipse 1.2.2.20100122-1337 (org.eclipse.epp.package.jee.product)
Installed Features:
 org.eclipse.jdt 3.5.2.r352_v20100108-7r88FEwFI0WTuoBl0iaG0tyhfZH6
Comment 1 Olivier Thomann CLA 2010-05-03 12:52:10 EDT
I believe each line has to finish with a line separator even if this is the last line.
Check http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html#Manifest%20Specification.
If this is not the case (you are missing the last line separator), this bug would be invalid.