ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Lalevée <>
Subject Re: order of dependencies returned by getDependencies(), artifactreport
Date Thu, 28 Apr 2011 22:31:50 GMT
Hi Ray,

Le 22 avr. 2011 à 01:37, Ray Plante a écrit :

> Hi developers,
> Is there an intended order that can be assumed in the array of 
> dependencies that are returned by ResolveEngine.getDependencies()?
> I am hoping, for example, that the artifactreport Ant Task returns the 
> dependencies consistently in "directness" order; in particular, I would 
> like to be able to iterate (backwards) through the list such that each 
> artifact depends only on artifacts that have already been seen in the 
> list.  
> My few experiments so far (including with a DAG dependency structure) 
> indicate that this is indeed the case; however, I haven't been able to 
> find anything in the documentation that explicitly says this will be the 
> case.  Perusing the code, it looks like the order that artifactreport 
> provides is determined by the order provided by 
> ResolveEngine.getDependencies() (yes?).  The javadoc is silent on the 
> issue of order; however, code and code comments indicate care taken to 
> sort and preserve an order of the results.
> Can anyone comment on the intent?

Yes, you can rely on the order which is returned by the ResolveEngine and thus by any code
using it like the artifactreport Ant task. I have updated the javadoc accordingly.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message