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

Bug 342354

Summary: PDEMapProvider needs a way to do token substitution in the map files.
Product: z_Archived Reporter: Thomas Hallgren <thomas>
Component: BuckminsterAssignee: buckminster.core-inbox <buckminster.core-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 342363    

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