Michael Frederick wrote: > I have an <exec> task which produces output that I want to capture in > a file, but not have present in the NAnt output. No matter what > combination of settings I have tried I cannot seem to produce this > result. Here's the original project file: > ... > > I have tried removing the "failonerror" attribute, changing verbose to > FALSE and removing the "verbose" attribute. I do get the output > captured, but it still appears as a *long* series of [exec] output > lines in the NAnt output. I need to suppress this; it appears in my > CCNet logs and in CCNet's notification Emails. Does anyone have any > suggestions? There's no way yet to do this in NAnt. It's been a while since someone raised this, but it's been requested repeatedly and at least one possible patch has been submitted.
To fake it, set up a .bat file or other shell script that does the redirection for you, and use cmd.exe (or whichever shell you prefer) to execute the .bat file from the <exec> command. For cmd.exe, you'll need to get the correct command line options so that it doesn't hang after the command completes. Since you're using CC.Net, another option would be to tweak the .xsl file that generates the email and NAnt logs, to exclude this output. This is pretty easy if you know XSLT, and could probably be done once (well, twice, since the CC.Net mail and the CC.Net dashboard use two different xsl files) instead of having to change multiple instances of <exec>. Gary ------------------------------------------------------------------------- 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