Community
Participate
Working Groups
Currently bundles in the target platform are recognized by PDE only if they have an extension of 'jar'. Can that be more flexible ? If I have a bundle with proper structure and a Manifest but the extension is a 'war' or a 'zip' can PDE recognize it ?
Equinox and p2 should support bundles in zip files with any extension. PDE should do the same. There are explicit checks for .jar in the target platform code. Experimenting has shown that there must be similar checks in the model manager/state. There must be checks to ensure that the file is a valid zip archive to prevent erroneous files from being treated as bundles.
Created attachment 207862 [details] WIP Makes the minimum number of changes to allow non-jar archives to be added to the target platform and propagated to the state and classpath. This change requires additional fixes and significant testing before committing. I have marked areas where we explicitly check for .jar extensions with // TODO 355890
Fix pushed to master http://git.eclipse.org/c/pde/eclipse.pde.ui.git/commit/?id=ab526dc50fe722fab6be893c3e2a7162d3dac7b4 Needs some additional testing on Windows which Ankur said he will help out with next week. We are considering backporting this change. It is unlikely to cause issues for current Eclipse users as jar files are still supported.
The fix applies to 3.7.x with only minor tweaks, including the fix to the target tests. Waiting on the outcome of bug 367164 and Ankur's testing to push it. Since builds are shutting down for Christmas break, this will have to wait until Jan.
Backport is handled by bug 367164. Closing as FIXED.
(In reply to comment #5) > Backport is handled by bug 367164. Closing as FIXED. This is the wrong number - it's bug 367796.
Verified in I20120123-1800 Bug 368753 will wait for M6.