Very simple indeed and it works! Thanks.
-----Original Message-----
From: Mikko Kurki-Suonio [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 16, 2001 9:50 AM
To: [EMAIL PROTECTED]
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
