Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

<availible> broken in 1.8?

Nik

2010-03-30

Replies: Find Java Web Hosting

Author LoginPost Reply
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@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.