ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilbert Rebhan <>
Subject Re: How to fail if property expansion failed...
Date Fri, 22 Oct 2010 22:38:39 GMT
-------- Original Message  --------
Subject: Re: How to fail if property expansion failed...
From: mattf <>
Date: 22.10.2010 23:39

> I was hoping to avoid introducing additional requirements, such as antcontrib
> or Ivy.

> Yes, sort of; a library property is a list of jars, a library-list names
> those properties by name; and is passed to classpath after expansion to the
> actual jars, and relative names expanded.  If the expansion fails, then the
> origin list named an undeclared property, and the name-form (${name}) is
> passed to classpath, indicating failure.  Now, I want ant to fail when
> failure is indicated.<p/>

use fail combined with a nested condition, something like=

<fail message="F a i l u r e => $${yourlibproperty} not set!!">
   <isset property="yourlibproperty"/>

Regards, Gilbert

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message