You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "jaikiran pai (JIRA)" <ji...@apache.org> on 2017/06/02 02:51:04 UTC

[jira] [Commented] (IVY-1507) Ant retrieve task returns inconsistent jar order

    [ https://issues.apache.org/jira/browse/IVY-1507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16034061#comment-16034061 ] 

jaikiran pai commented on IVY-1507:
-----------------------------------

AFAIK, there isn't a deterministic order for the artifacts retrieved by the retrieve task.

> Ant retrieve task returns inconsistent jar order
> ------------------------------------------------
>
>                 Key: IVY-1507
>                 URL: https://issues.apache.org/jira/browse/IVY-1507
>             Project: Ivy
>          Issue Type: Question
>          Components: Ant, Core
>    Affects Versions: 2.3.0, 2.4.0
>         Environment: Red Hat Linux RHEL 5
>            Reporter: Ron Knight
>
> Is it expected behavior that path variables set by the retrieve task will have an inconsistent ordering, or is this a bug? 
> I am using the retrieve task within an Ant script and setting a path variable.  When I run the script on Win7 the path contains the jars in the order in which they are listed in the ivy.xml file; however, when i run the script on Linux, the order of the two jars is reversed.
> I have two dependencies in a "test" configuration....JMockit and JUnit.  My "test" conf is the first conf listed.  JMockit is listed as the first dependency and JUnit is listed as the second dependency.
> Due to the nature of the jars in use, the order of the entries in the path variable important. 
> I've also cleared the .ivy2 cache several times just to be sure that I am getting fresh resolutions.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)