From: Eric F. <els...@ya...> - 2008-11-25 17:47:32
|
I don't believe I can do that in PSExec. Each call is a session, and thus, the call to vcvars32 would be a session, and then the call to nant would be a session. The only thing I can think of is to put the two calls into a batch file, put that on the machine, and then call the batch file. ________________________________ From: Melissa <mk...@ms...> To: Eric Fetzer <els...@ya...>; Nant Users <nan...@li...> Sent: Tuesday, November 25, 2008 9:06:57 AM Subject: Re: [NAnt-users] psexec and NAnt The environment that vcvars32.bat sets up goes away as soon as the exec call is completred. It isn't available in the next call. Run vcvars32.bat betore you call nant. -----Original Message----- From: Eric Fetzer [mailto:els...@ya...] Sent: Monday, November 24, 2008 2:27 PM To: Nant Users Subject: [NAnt-users] psexec and NAnt OK, I've got some strangeness here. So I call NAnt from a different machine using PSExec to call it. On all but one of our apps that I build this way (close to 100 total), all's cool. This one, however, fails from psexec where it succeeds directly from the command line. The difference between this project and all others is that this project has C++ projects in it. The error is always something like: [cl] Starting 'cl (@"C:\Documents and Settings\me\Local Settings\Temp\tmp13AE.tmp" /EHsc /FR".\Release/" /W3 /Od /ZI /RTC1 /MT /nologo)' in 'D:\MyBuildFolder\MyCPlusPlusProject' When I build this at the command line, it would succeed with the only difference being another folder like 14 or something under the Temp directory. I can reproduce this by trying to call the build from a regular cmd.exe window. So... I tried to add the following line to the build file: <exec program="C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\vsvars32.bat" timeout="30000" /> Same error. Anyone with a clue? Thanks, Eric |