ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Drew Davidson <>
Subject Re: How can I have Ant replace unset properties as just empty string
Date Thu, 28 Mar 2002 22:25:01 GMT
Diane Holt wrote:

> Use Ant's property immutability to set any property that's not already set
> to some other value. IOW, set the property to whatever default value you
> want, and if it hasn't been set by some other means by the time it hits
> your default-setting <property> tag, it'll get your default value.

Diane, what's the theory behind replacing ${foo} with ${foo} if the 'foo'
property has not been set?  In make as well as other tools that have variable
expansion you usually get blank for unset variables.  Just wondering what
rationale there is for this behaviour.

- Drew

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

View raw message