ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Small <msm...@Clickability.com>
Subject How can I have Ant replace unset properties as just empty string
Date Thu, 28 Mar 2002 18:35:33 GMT
Is there any special syntax for having ant replace an empty string when a
property referred in a build file has not been set? Currently if you put
${prop} into a build file (in a target param suppose) and it has not been
set it actually passes '${prop}' as the attribute value. I need it to just
put ''.

In velocity for example there is a syntax $!prop that will do this, is there
any similar thing in Ant.

Thanks in advance.

Matt

--
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