| Summary: | Replace versions in .product file | ||
|---|---|---|---|
| Product: | [Eclipse Project] PDE | Reporter: | Helmut J. Haigermoser <helmut.haigermoser> |
| Component: | Build | Assignee: | pde-build-inbox <pde-build-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | aniefer, bvitale3002, egalvez, irbull, qwang, rpk_pro, spektom |
| Version: | 4.0 | ||
| Target Milestone: | 3.5 M6 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 260066 | ||
|
Description
Helmut J. Haigermoser
2 other items, .product file may have version information for the plugins/feature list (even though the editor does not show versions there). We should consider .qualifier there as well. Similarly, the property p2.root.version which is used in the absence of the .product file is also a candidate for replacement. +1 We also have to have a custom build step that replaces the version in the .product file, before invoking PDE build/P2 stuff. done.
products with versions ending in ".qualifier" will get the qualifier replaced with the property "p2.product.qualifier".
The default value of this property will be generated according to
1) forceContextQualifier
2) timestamp
Note that the .product file itself is not modified, but rather a copy is generated with the new versions. The copy is placed in ${buildDirectory}/features/org.eclipse.pde.build.container.feature/product, and this is the copy the p2 metadata generation works from.
Thanks Andrew, 't will be some time till I can test this in my release environment but I'll eventually report back! :) Helmut Not fixed. I set p2.product.qualifier in build.properties, however what I get in the generated repository's content.xml is non-modifier version: 1.0.0.qualifier I use basebuilder from 3.5M7. This is working for me in publisher based builds (p2.gathering=true). If you have a metadata generator based build with p2.generate.metadata=true, see bug 277514. product qualifier replacement does not apply to non-p2 builds. Michael, if bug 277514 doesn't apply can you please open a new bug with the details. I would like to keep this bug as the overall enhancement which is done and have separate bugs if there are particular cases where there are problems. |