ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nik <apa...@babel.homelinux.net>
Subject <availible> broken in 1.8?
Date Tue, 30 Mar 2010 08:15:20 GMT
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


Mime
View raw message