Hello,
I could use some advice about how to handle this situation:
I have a property, MyProperty, that may or may not be set. I want a task to
execute if the property is set, e.g.
echo messsage=Hello ${MyProperty}! if=${property::exists('MyProperty') /
If MyProperty is not set,
I think I have run into this before. I think the easiest fix is to make sure
the property always exists. Then you can check to see if it is not empty.
BOb
From: Durand Van Arnem [mailto:duran...@hotmail.com]
Sent: Tuesday, April 13, 2010 10:33 AM
To: NAnt Users
Subject: [NAnt-users] Using if
Hello,
Maybe I am missing something here, but, I tried this using the following:
if test=${property::exists('MyProperty')}
echo message=${MyProperty} /
/if
This executed without failure, but, I did not define