If the command line of the tool doesn't support an errors only output option then you may have trouble with this. If that tools supports STDOUT and ERROUT you may be able to redirect the output to a file and if you get an error return code you can read in the error output and echo it to your build log. I have done this will tools that allow the output to be directed to a file and then parse the output for error messages.
BOb > -----Original Message----- > From: gmoney [mailto:g.lab...@autodata.ltd.uk] > Sent: Thursday, October 08, 2009 10:16 AM > To: nant-users@lists.sourceforge.net > Subject: [NAnt-users] aspnet_compiler.exe ignore warning messages > > > Hi I use the "aspnet_compiler.exe" in my nant script to compile a > asp.net > website. There are warnings messages that are being outputted. I only > am > interested in errors, therefore how can i only see errors and not > warnings? > My code is as follows: > > <exec program="${dotnet}/aspnet_compiler.exe" commandline="-f -u -p > ${BuildDirIE} -v / ${outputFolderIE}" verbose="true" > failonerror="false"/> > -- > View this message in context: > http://www.nabble.com/aspnet_compiler.exe-ignore-warning-messages- > tp25803015p25803015.html > Sent from the NAnt - Users mailing list archive at Nabble.com. > > > ----------------------------------------------------------------------- > ------- > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart > your > developing skills, take BlackBerry mobile applications to market and > stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > NAnt-users mailing list > NAnt-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users