daniel, do you mean target or task?

for task, i don't know...
for target, i'd to this:

<property name="is.run.B" value="false" />

<target name="main"  depends="B, A" >
...
</target>

<target name="A" if="${is.run.B}" >
...
</target>

<target name="B"  >
...
  <property name="is.run.B" value="true" />
</target>

jean

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Daniel Bron
> Sent: Friday, December 12, 2003 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 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 and 
> completed successfully.
> 
> -D. Bron
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program. 
> Does SourceForge.net help you be more productive?  Does it 
> help you create better code?  SHARE THE LOVE, and help us 
> help YOU!  Click Here: http://sourceforge.net/donate/ 
> _______________________________________________
> Nant-users mailing list
> [EMAIL PROTECTED] 
> https://lists.sourceforge.net/lists/listinfo/n> ant-users
> 



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to