ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikko Kurki-Suonio <max...@davisor.com>
Subject Re: default value for property
Date Thu, 16 Aug 2001 16:50:01 GMT
On Thu, 16 Aug 2001, Cynthia He wrote:

> I have a very frequently used property in my build.xml.   How can I
> determine if the user invoking ant has override it or not (since property
> does not support unless) so that I can proivide a default value in case the
> user did not have a value for it?

Simple. Just set it. ANT properties can not be re-set (without some
trickery), so if it was set on command line, the <property> tag doesn't
really do anything.

//Mikko



Mime
View raw message