Hi Sven,
I might use the same approach as you. (Thank you for sharing your solution.)

Also I found an already filed bug. I've added my comments as well:
https://issues.apache.org/jira/browse/IVY-1001, hopefully it will be fixed
soon.

On Tue, Sep 23, 2014 at 12:33 AM, Sven Zethelius <sv...@expedia.com> wrote:

> I ran into this situation as well.  To work around it, I added an ant task
> ahead of the ivy resolve that generated a new ivy file, replacing the
> placeholders ant knew about and then using that ivy file as the actual
> dependency
>
> <copy file="${project.root}/ivy.xml" tofile="${ivy.file}">
>   <filterchain>
>     <expandproperties />
>   </filterchain>
>                 </copy>
>
>
>
>
> On 9/22/14, 2:12 PM, "Ionut Scutaru" <ionut.scut...@gmail.com> wrote:
>
> >Thank you, Zac ! Indeed, I managed to track down the problem: once I set
> >the actual name of the module, everything works fine.
> >
> >For example I had to change from:
> >
> >
> >
> >*info organisation="com.test.ivy" module="${ant.project.name
> ><http://ant.project.name>}"        revision="${test.release}"
> >status="${proj.status}"/>*
> >
> >to:
> >
> >
> >*<info organisation="com.test.ivy" module="UtilPrj"
> >revision="${test.release}" status="${proj.status}"/>*
> >
> >It seems this is a bug in the buildlist ivy tag, as the
> >${ant.project.name}
> >is correctly replaced in every other situation.
> >
> >Well, for the moment I'll have to live with duplicating the module name in
> >the ivy.xml file.
> >
> >
> >
> >On Mon, Sep 22, 2014 at 10:23 PM, Zac Jacobson <pie....@gmail.com> wrote:
> >
> >> Oh I see what you mean.
> >>
> >> Well, if it's not able to establish dependencies, perhaps it doesn't
> >>take
> >> your complex ant file included into account.
> >>
> >> In your example, I put explicit values in the ivy file for UtilPrj and
> >>it
> >> seems to come back in the expected order.
> >>
> >> <info organisation="com.test.ivy" module="UtilPrj"
> >> revision="${test.release}"
> >> status="${proj.status}"/>
> >>
> >> On Mon, Sep 22, 2014 at 11:37 AM, Zac Jacobson <pie....@gmail.com>
> >>wrote:
> >>
> >> > Your ant script is building projects in alphabetical order, which
> >>happens
> >> > to not match your ivy dependency order. So PrjDependingOnUtilPrj is
> >>built
> >> > first, but it can't find a UtilPrj because that project hasn't been
> >> > built/published yet.
> >> >
> >> > You should give your master ant file the explicit order to
> >>build/publish
> >> > things, if that's what you want to do.
> >> >
> >> > On Mon, Sep 22, 2014 at 2:07 AM, Ionut Scutaru
> >><ionut.scut...@gmail.com>
> >> > wrote:
> >> >
> >> >> Hi,
> >> >>
> >> >> I'm using Ivy 2.2.0 and Ant 1.9.2 and I'm currently facing a problem
> >> >> related to ivy:buildlist: it generates the list of dependencies in
> >>the
> >> >> project in the wrong order.
> >> >>
> >> >> I'm attaching a configuration that shows the problem that I'm facing.
> >> >>
> >> >> I'm running the build.xml located in the deploymentUtilities/ant.new
> >> >> folder and I see this error in the console:
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> *[ivy:resolve]
> >> >> ::::::::::::::::::::::::::::::::::::::::::::::[ivy:resolve]
> >> >> ::          UNRESOLVED DEPENDENCIES         ::[ivy:resolve]
> >> >> ::::::::::::::::::::::::::::::::::::::::::::::[ivy:resolve]
> >> ::
> >> >> com.test.ivy#UtilPrj;1.0.0: not found[ivy:resolve]
> >> >>
> >>
> >>::::::::::::::::::::::::::::::::::::::::::::::[ivy:resolve][ivy:resolve][
> >>ivy:resolve]
> >> >> :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS*
> >> >>
> >> >> Could anybody help me ? I really don't understand why the order is
> >>not
> >> >> the correct one.
> >> >>
> >> >> Thank you !
> >> >>
> >> >
> >> >
> >>
>
>

Reply via email to