| Summary: | Plugin signatures lost upon site.p2 | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Thorsten Meinl <thorsten> | ||||||||
| Component: | Buckminster | Assignee: | buckminster.core-inbox <buckminster.core-inbox> | ||||||||
| Status: | NEW --- | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | thomas | ||||||||
| Version: | unspecified | ||||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | All | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Thorsten Meinl
Created attachment 185025 [details]
feature for building a p2 repository
Sorry, forgot the Buckminster version again: org.eclipse.buckminster.pde_1.2.1.r11582 Created attachment 185270 [details]
Patch for org.eclipse.buckminster.pde
I'm not sure if this patch is the most elegant way of solving the problem, but it works for me.
The patch adds an additional check for unpacked bundles: if they are part of the target platform they are recreated by a new ant tasks that includes all files in the corresponding directory and does *not* exclude the signature files. If the plugin is not part of the TP it is recreated by the "old" ant tasks that leaves out the signature files.
The check if a bundle is part of the TP may not be the most efficient way, but I didn't find another one.
This patch seems to move a couple of methods which makes it hard to see what the actual difference is. It would be great if you could provide a patch where nothing is moved. I'd prefer if it was applicable to the helios-maintance branch. Created attachment 187736 [details]
Patch for org.eclipse.buckminster.pde
Sorry, the save action on the project has moved the method. Here is a patch with only the relevant lines.
BTW, I discovered that the described problem not only affects plugin but merely *all* features from the target platform. They are all present as folders and upon packaging them for an update site, all signature files are deliberately removed. Unfortunately, looking the the corresponding code I could not find an as easy way as for the plugins to fix this problem. But maybe someone with a better understanding of the code and the internals can. (In reply to comment #5) > Sorry, the save action on the project has moved the method. This is due to a limitation in Eclipse. The Buckminster code assumes that you have a global workspace setting for member sort order. The expected order is public, protected, default, private. For some reason this setting cannot be applied per project. It's been reported but to my knowledge it hasn't been fixed yet. > Here is a patch with only the relevant lines. Thanks. I 'll have a look. |