Return a value from NAnt script

View: New views
3 Messages — Rating Filter:   Alert me  

Return a value from NAnt script

by Wilson, Brian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

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



------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/nant-users

Re: Return a value from NAnt script

by EricT-in-Ottawa :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

I echo an XML fragment into a file, which is then opened in the other script and interpreted.

HTH,

Eric T.

 

From: Wilson, Brian [mailto:Brian.Wilson@...]
Sent: August 13, 2009 10:22
To: nant-users@...
Subject: [spam] [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



------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/nant-users

Re: Return a value from NAnt script

by Michael Pento :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

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.Wilson@...]
Sent: Thursday, August 13, 2009 10:22 AM
To: nant-users@...
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



------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/nant-users