Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a small issue in a nant build file.

Brief : we have a 2 build files EX (web and DB) which are independent and called seqentially..

nant -buildfile:web.build

nant - buildfile:db.build

To save time we are building it in parallel by adding a bat file and inside bat file we call both web & db

< exec program="parallel.bat" >

parallel.bat :

start web.bat

start db.bat

web.bat :

nant -buildfile:web.build

db.bat

nant - buildfile:db.build

it works fine but the concern is if there is any failure in web.bat or db.bat ... the build continues calling the remaining targets present in the main build file, without exiting .

Is there any way to stop the build if there is any failure or can we achieve the parallelism of web and db without using batch files (is there any task in nant ). we use MSBuild to build the web

Thanks,

Vishal
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900