While I'm not sure on your real errors (why it fails yet it succeeds), right now you are only re-directing standard out to the log file, but not any errors. You may want to append this command to the end of your command: 2>&1 example: nant -buildfile:.\CPI\BuildCPI.xml -D:CPICodeRoot="%GADOECodeRoot%" -D:CurrentVSSLabel=%CurrentVSSLabel% %LogLevel% %NANTTARGETS% >> %BuildDetailLog% 2>&1
That re-directs any error output to standard out, which is going to your log file. That solves your last question (preventing it from showing up on your console, which is the default behavior of errors) Marc --- [EMAIL PROTECTED] wrote: > Hello, > > When executing a nant script from at .bat file, I > redirect ALL output to a > log file as follows: > > nant -buildfile:.\CPI\BuildCPI.xml > -D:CPICodeRoot="%GADOECodeRoot%" > -D:CurrentVSSLabel=%CurrentVSSLabel% %LogLevel% > %NANTTARGETS% >> > %BuildDetailLog% > > In this particular build, I get the following errors > ON THE CONSOLE and > the build SUCCEEDS! (Note that the errors occur > during the building of > the solution of a web project using the NANT > solution task.) > > Unhandled Exception: > System.AppDomainUnloadedException: Attempted to > access an unloaded AppDomain. > at [EMAIL PROTECTED](Void* , UInt32, Void*) > > (occurs 3 times). > > Are these NANT errors? If so, does anyone know what > causes them or what > to do about them? If the errors do not prevent the > build from succeeding, > then I would like to prevent this output from > appearing on my console. > > Thanks, > > Sophie ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ NAnt-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nant-users
