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

Bug 319619

Summary: [tools] p2.director ant task doesn't deal well with multiple repositories
Product: [Eclipse Project] Equinox Reporter: Spencer Uresk <suresk>
Component: p2Assignee: P2 Inbox <equinox.p2-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: pascal
Version: unspecifiedKeywords: helpwanted, usability
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: stalebug

Description Spencer Uresk CLA 2010-07-12 13:53:06 EDT
Build Identifier: 20100617-1415

I have a product build with the following entry in the pre.archive target:

<ant antfile="${genericTargets}" target="runDirector" inheritAll="true">
<property name="p2.repo" value="file://${base}/../updatesite/target/site, http://dev/nexus/content/groups/helios"/>
<property name="p2.director.iu" value="org.stack.ide.common.feature.feature.group"/>
<property name="p2.director.installPath" value="${eclipse.base}"/>
</ant>

However, this does not work, as the second url ends up getting corrupted. The error I get when running my build is:

[java] [p2.director] Unable to read repository at http:/dev/nexus/content/groups/helios/artifacts.xml.

[java] [p2.director] Unable to read repository at http:/dev/nexus/content/groups/helios/content.xml.

You'll note the single slash after http:. This is causing our builds to not work. Upon further investigation, the problem seems to be that in org.eclipse.equinox.p2.director.app.ant.DirectorTask, the artifact and metadata repository strings are turned into a URI, then back into a string. Then when it calls DirectorApp.run, those strings are split (on ,) and turned back into URIs again.

The DirectorApplication itself seems to account properly for multiple repository URIs, but the DirectorTask does not.

Reproducible: Always

Steps to Reproduce:
1. Attempt to call the runDirector target with multiple entries (separated by a comma) in the p2.repo property.
Comment 1 Pascal Rapicault CLA 2011-06-11 00:37:23 EDT
A patch would be very welcome. Thx.
Comment 2 Eclipse Genie CLA 2019-08-03 14:17:29 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.