1) String these commands all together with & in one <exec>
2) Put all of these commands in one script and call the script with an exec
command.
 
Make sure the last command returns a proper error code so that nant knows if
it passed or failed.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kropacek,
Miroslav
Sent: Friday, November 24, 2006 6:17 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] how to merge NAnt and Windows DDK tools?



Hello,

 

I've got a little problem: I have to use Windows DDK's tools as build.exe
for building some older project. The problem is that build.exe needs to run
a script called "setenv.bat" where can be found a lot of env. settings etc.
Normally it works as follows:

 

-          winddk installer created shortcut in start menu to
"C:\WINNT\system32\CMD.EXE /k C:\NTDDK\bin\setenv.bat C:\NTDDK free"

-          this runs "improved console" where I change the directory to my
project

-          then type "build /cZ"

-          my project is built

 

My question is: it's possible to automate this thing using Nant? I can't run
setenv.bat and then build.exe separately since I need that env variables
(they are lost if I use two exec tasks).

 

Thank you for any help.

 

Regards,

Miro Kropacek

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to