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

Bug 291284

Summary: [repo2runnable] Add support for slicing options
Product: [Eclipse Project] Equinox Reporter: Ben Vitale <bvitale3002>
Component: p2Assignee: P2 Inbox <equinox.p2-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: dj.houghton, Ed.Merks, pascal
Version: 3.5   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Ben Vitale CLA 2009-10-03 19:33:36 EDT
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3
Build Identifier: I20090611-1540

When I run the p2.repo2runnable Ant task, specifying a source, destination, and specific IUs I am interested in, nothing beyond the metadata is downloaded.

Reproducible: Always

Steps to Reproduce:
1. Setup target as follows:

<p2.repo2runnable>
  <destination location="file://c:/output"/>
  <source>
    <repository location="http://download.eclipse.org/releases/helios/"/>
  </source>
  <iu id="org.eclipse.sdk.ide"/>
</p2.repo2runnable>

2. Run in Eclipse using same JRE as Eclipse

Expected results: SDK artifacts appear in the output folder.
Actual results: artifacts.jar and content.jar appear in the output folder.

There are no errors and Ant exits normally.
Comment 1 Pascal Rapicault CLA 2009-10-04 12:10:54 EDT
The org.eclipse.sdk.ide IU does not have any artifact associated with, and the repo2runnable task does not perform a transitive closure like the mirror app does. Therefore what you get is expected.

What we usually recommend is for ppl to first mirror locally their repository (http://wiki.eclipse.org/Equinox/p2/Ant_Tasks/Partial_Mirroring/Example http://wiki.eclipse.org/Equinox/p2/Ant_Tasks) and then make them into a repo2Runnable.

The only thing that could be argued is that we could support the slicing options on the repo2Runnable.
Comment 2 Pascal Rapicault CLA 2009-10-07 14:34:40 EDT
*** Bug 264267 has been marked as a duplicate of this bug. ***
Comment 3 Eclipse Webmaster CLA 2019-09-06 16:10:07 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.
Comment 4 Ed Merks CLA 2020-02-24 00:53:49 EST
It seems there is a workaround and Ant tasks are no longer heavily used.