ant-user mailing list archives

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

You must wrap your <property> above inside a <target name="..."
if="env.IS_DEV_HOME" unless="is.dev.home">, to only set is.dev.home
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message