ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Drew Davidson <d...@eblox.com>
Subject Re: How can I have Ant replace unset properties as just empty string
Date Fri, 29 Mar 2002 01:00:06 GMT
Steve Loughran wrote:

> ...let you know that things are undefined (for information; if you want to
> break the build on an undefined property do something like
>
> <fail unless="env.CATALINA_HOME">no tomcat</fail>

This is not really the issue.  This is checking to see if a property is
defined.  What I'm wondering is why it echos ${foo} when foo is undefined as in

<echo>foo = ${foo}</echo>

Which, if foo is undefined echos

foo = ${foo}

I don't see what problem this solves as opposed to the output

foo =

- Drew



--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message