You can set any environmental variables you need in the exec task rather
then needing to call that bat file.
________________________________
From: Eric Fetzer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 25, 2008 12:47 PM
To: Melissa; Nant Users
Subject: Re: [NAnt-users] psexec and NAnt
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 <[EMAIL PROTECTED]>
To: Eric Fetzer <[EMAIL PROTECTED]>; Nant Users
<nant-users@lists.sourceforge.net>
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:[EMAIL PROTECTED]
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
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users