RE: [Nant-users] task to test a target won't work

2004-05-20 Thread Noel Gifford
] [mailto:[EMAIL PROTECTED]On Behalf Of Jeroen Stiekema Sent: Wednesday, May 19, 2004 1:09 AM To: [EMAIL PROTECTED] Subject: [Nant-users] task to test a target won't work   Hi,   I have a problem with the usage of the task. I would like to test if a target exists. If the target exists, the t

Re: [Nant-users] task to test a target won't work

2004-05-19 Thread Ian MacLean
Hi Jeroen, try using : directory:exists() instead [1]. target::exists) is used to check whether a nant target of a given name exists in the currnt buildfile. Ian [1]http://nant.sourceforge.net/nightly/help/functions/directory.exists.html Jeroen Stiekema wrote: Hi, I have a problem with the usage

[Nant-users] task to test a target won't work

2004-05-19 Thread Jeroen Stiekema
Hi,   I have a problem with the usage of the task. I would like to test if a target exists. If the target exists, the target will be deleted.         The ‘bin’ property is set to build\bin. I’m 100% sure the target exists, but the test will return false, so the if task