Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 270894 - Categories not mirrored into final destination repo
Summary: Categories not mirrored into final destination repo
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.5 M7   Edit
Assignee: pde-build-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-01 18:18 EDT by Andrew Niefer CLA
Modified: 2009-04-07 18:04 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Niefer CLA 2009-04-01 18:18:47 EDT
When using the new p2.gathering to build repositories, generated categories are not getting mirrored out of the build private repo into the final destination.
Comment 1 Andrew Niefer CLA 2009-04-07 18:04:53 EDT
Fixed.

This adds 2 new attributes to the <iu> element nested in the mirror task: "query" and "required". 
<p2.mirror  ...>
   <iu query="property[@name='propertyName' and @value='propertyValue']" />
</p2.mirror>

The format of the query attribute is intended to be "xpath-like".  Currently only properties are supported, but this may be expanded in the future.
In this particular case, we are mirroring with:
<iu query="property[@name='org.eclipse.equinox.p2.type.category']"
    required="false" />
Which will mirror all IUs which have the "org.eclipse.equinox.p2.type.category" property and won't cause a failure if no such IUs are found.