ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peter.kitt.rei...@gmail.com>
Subject Re: <availible> broken in 1.8?
Date Tue, 30 Mar 2010 22:36:46 GMT
I do not see how this would work in ant 1.7, unless
you have the ivy jars in $ant.home/lib

Peter

On Tue, Mar 30, 2010 at 9:15 AM, Nik <apache@babel.homelinux.net> wrote:
> Hi I recently upgraded from Ant 1.7 to Ant 1.8.
>
> One feature of my existing Ant files that seems to no longer work is the
> <available> element.
>
> I have the following in my global Ant file to detect Ivy:
>
> <!-- add a searchpath to find the ivy jars -->
> <path id="ivy.lib.path">
> <fileset dir="${ivy.home}" includes="*.jar"/>
> </path>
> <taskdef resource="org/apache/ivy/ant/antlib.xml"
>       uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>
>
> <!-- check to see if Ivy is available -->
> <available classname="org.apache.ivy.ant.IvyConfigure"
>         property="ivy.present" />
>
> <echo message="Ivy detected: ${ivy.present}" />
>
> Under Ant 1.7, this works and the message shows:
>
>     [echo] Ivy detected: true
>
> Under Ant 1.8, this fails, and the message shows:
>
>     [echo] Ivy detected: ${ivy.present}
>
> Looking at the Ant file, it seems pretty clear that the "ivy.present"
> property has not been set by the <available> element.
>
> Has anybody else noticed any issues in this area?
>
> Cheers!
> Nik
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message