Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342354 - PDEMapProvider needs a way to do token substitution in the map files.
Summary: PDEMapProvider needs a way to do token substitution in the map files.
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Buckminster (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: buckminster.core-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 342363
  Show dependency tree
 
Reported: 2011-04-09 10:31 EDT by Thomas Hallgren CLA
Modified: 2019-02-25 14:40 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Hallgren CLA 2011-04-09 10:31:46 EDT
It is very common for projects that use the PDE builder to also use PDE style map files. Buckminster has a special provider for this purpose that first finds such maps using a reader type and then delegates to a new provider that is created on the fly based on the information found in the map files.

This works well in most cases, but some builds, like the Orion build for instance, perform token substitution in the map file prior to using it. We find entries like:

plugin@org.eclipse.equinox.util=p2IU,id=org.eclipse.equinox.util,repository=ECLIPSE_PLATFORM_REPO

In order to cope with this in the RMAP, the PDEMapProvider would need a way to perform the replacements.
Comment 1 Thomas Hallgren CLA 2011-04-10 03:04:26 EDT
Support for this was added by using the already existing <replace>' element with a twist. The <replace> normally applies a regexp on a property declared as a subelement but in this case, no subelement is specified. Instead, the <replace> will act on each line that is read from the map files found by the PDEMapProvider.

Fixed in trunk, rev. 11769