I usually set the properties with a default value directly for using them.
<project>
...
<target>
...
<property name="myprop" value="default" />
<echo>${myprop}</echo>
Because property can be only set once the default is only used if the
property isn�t set before.
And I can be sure, that im my task (<echo>) the property has a valid value.
If an empty value is valid write
<property name="myprop" value="" />
Hope that helps.
Jan Mat�rne
-----Urspr�ngliche Nachricht-----
Von: Kyrre Lugg [mailto:[EMAIL PROTECTED]]
Gesendet am: Donnerstag, 19. Dezember 2002 16:30
An: [EMAIL PROTECTED]
Betreff: Empty properties
Is it possible to make ant not to use the property name of unset
properties, so that
<echo>${myunsetproperty}</echo>
does not print
[echo]${myunsetproperty}
We'd prefer it to be empty instead...
Kyrre Lugg
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>