ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cynthia He <...@Insight.com>
Subject RE: default value for property
Date Thu, 16 Aug 2001 18:41:34 GMT
Very simple indeed and it works!  Thanks.

-----Original Message-----
From: Mikko Kurki-Suonio [mailto:maxxon@davisor.com]
Sent: Thursday, August 16, 2001 9:50 AM
To: ant-user@jakarta.apache.org
Subject: Re: default value for property


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