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

Bug 335042

Summary: Composite repo remove task adds instead of removes
Product: [Eclipse Project] Equinox Reporter: Andrew Niefer <aniefer>
Component: p2Assignee: P2 Inbox <equinox.p2-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 3.7 M5   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Andrew Niefer CLA 2011-01-21 13:50:00 EST
Using the following ant task:
<p2.composite.repository destination="file:/repo" >
   <remove location="I201101" />
   <remove location="I201102" />
</p2.composite.repo>

has two problems:
1) the repositories are added instead of removed
2) the relative URIs are made absolute using the current working directory before adding them

Things work ok if you do this instead:
<p2.composite.repository destination="file:/repo" >
   <remove>
      <repository location="I201101" />
      <repository location="I201102" />
   </remove>
</p2.composite.repo>
Comment 1 Andrew Niefer CLA 2011-01-21 13:52:13 EST
fixed