Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 311376

Summary: Problem exporting jar with manifest.mf
Product: [Eclipse Project] JDT Reporter: w.ankudin
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: Olivier_Thomann, remy.suen
Version: 3.5.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

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.