Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335042 - Composite repo remove task adds instead of removes
Summary: Composite repo remove task adds instead of removes
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.7 M5   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-21 13:50 EST by Andrew Niefer CLA
Modified: 2011-01-21 13:52 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 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