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

Bug 357944

Summary: Parse error when using <iu> tag in category.xml with action site.p2
Product: z_Archived Reporter: js Mising name <tulsoba>
Component: BuckminsterAssignee: buckminster.core-inbox <buckminster.core-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: thomas
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description js Mising name CLA 2011-09-16 10:07:39 EDT
Build Identifier: 20110218-0911

Cannot create p2 site that shows all bundles with a category.xml containing    <iu> </iu> tag. Eg.:

<?xml version="1.0" encoding="UTF-8"?>
<site>
   <category-def name="all" label="All Bundles"/>
   <iu>
      <category name="all"/>
      <query><expression type="match">providedCapabilities.exists(p | p.namespace == 'osgi.bundle')</expression></query>
   </iu>

</site>

Gives this error:

publishing result
E Error parsing site stream. Unknown element "iu" in parsing state "Category Def". Check the validity of the XML file.
E Error parsing site stream. Unknown element "category" in parsing state "Category Def". Check the validity of the XML file.
E Error parsing site stream. Unknown element "query" in parsing state "Category Def". Check the validity of the XML file.
E Error parsing site stream. Unknown element "expression" in parsing state "Category Def". Check the validity of the XML file.



See:

http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.orbit/org.eclipse.orbit.releng/maps/category.xml?root=Tools_Project&view=co&content-type=text/plain

for working category.xml example.

Reproducible: Always

Steps to Reproduce:
1. Add above category.xml next to the buckminster.properties file
2. Run the site.p2 action
3. Error