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 <[email protected]> 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: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
