ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <>
Subject Re: ant property not set question
Date Fri, 13 Apr 2007 21:18:09 GMT
On 4/13/07, Philip Swenson <> wrote:
> I have a property that is declared like this:
>     <property name="" value="${env.IS_DEV_HOME}"/>

You must wrap your <property> above inside a <target name="..."
if="env.IS_DEV_HOME" unless="">, to only set
when it's not already set, and only when IS_DEV_HOME env. var does
exist. Or use Ant-Contrib's <ac:if> to avoid the additional <target>,
with the <isset> condition. --DD

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

View raw message