Why not call the second batch file from within the nant script? If the
build portion fails the batch file is never executed.

 

Mike

 

________________________________

From: Wilson, Brian [mailto:brian.wil...@dhr.alabama.gov] 
Sent: Thursday, August 13, 2009 10:22 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Return a value from NAnt script

 

I have a batch file created that calls a NAnt script that performs a
build.  Then it calls another batch file to perform a separate task.
However, the problem is if the build does not succeed, then the next
batch file does not need to be called.  I want to return a value from
the NAnt script to the originating batch file so I can dynamically  call
the next batch.  The reason I cannot call the second batch from the NAnt
script is because of some reporting tasks that I have setup.  Is it
possible to return a value that can be accessed by a batch file or do I
need to change my reporting tasks?

 

 Thank you,

 

Brian Wilson

<<image001.gif>>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to