Bug 56689 - id/refid not available in ResourceCollection
Summary: id/refid not available in ResourceCollection
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: Ant Notifications List
Depends on:
Reported: 2014-07-02 07:23 UTC by Jochen Wiedmann
Modified: 2015-06-10 19:50 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Jochen Wiedmann 2014-07-02 07:23:46 UTC
AFAIK, it is not possible to create or use a Reference to a ResourceCollection, because the id/refid attributes aren't present in the respective implementation classes.

This is a serious constraint, because (for example) there is no possibility to pass resource collections to a macro.
Comment 1 Stefan Bodewig 2014-07-04 04:14:34 UTC
Not sure I follow you here.

It is true the ResourceCollection interface doesn't support refif/id directly but (almost?) all concrete implementations of the interface do.  What exactly are your trying to do that isn't possible?

I'm not completely sure we have documented it, but I think we do.  The <resources> type is the generic collection if you need a placeholder for any type of resource collection.  It's getRef() method casts the ref to ResourceCollection and not to any concrete subclass.

Comment 2 Jan Mat 2015-06-10 19:50:31 UTC
nearly 1yr after Stefans feedback.
Is the problem solved?