Re: [Nant-users] Conditional execution of a

2004-12-04 Thread Ian MacLean
Collier, Mike wrote: I seem to be having some problems with the "if" attribute on a . I would like to execute the if a specific property evaluates to "true". I have the following: try if="${property::get-value('sql.init')}" you need to reference the property by name. Ian I then recei

Re: [Nant-users] Conditional execution of a

2004-12-03 Thread Merrill Cornish
Mike, >>> property::get-value(sql.init) Should be property::get-value('sql.init') -- note the quotes. Without the quotes, NAnt tried to resolve sql.init into a value and then get ITS value. Actually, you can simplify your if-test to ${sql.init} since any non-quoted property name inside ${ ...

[Nant-users] Conditional execution of a

2004-12-03 Thread Collier, Mike
I seem to be having some problems with the "if" attribute on a . I would like to execute the if a specific property evaluates to "true". I have the following: I then receive the following error message: D:\Development\Projects\Library\Build\library.build(22,3): Function

Re: [Nant-users] Conditional execution

2003-12-12 Thread Ian MacLean
hmm well if failonerror is set to true then a task failure will stop the build meaning that no further tasks will execute regardless of dependencies. Ian Daniel Bron wrote: Hello, Is it possible to setup a task such that it won't run unless another task has executed successfully? The depends cl

RE: [Nant-users] Conditional execution

2003-12-12 Thread Jean Rajotte
14:30 > To: Nant (E-mail) > Subject: [Nant-users] Conditional execution > > > Hello, > > Is it possible to setup a task such that it won't run unless > another task has executed successfully? The depends clause > won't work because if TaskA depends on TaskB an

[Nant-users] Conditional execution

2003-12-12 Thread Daniel Bron
Hello, Is it possible to setup a task such that it won't run unless another task has executed successfully? The depends clause won't work because if TaskA depends on TaskB and TaskB hasn't been run, then TaskA will run TaskB. What I want is for TaskA to run if and only if TaskB has already run a