Hi Ruben, Thanks for your reply. The bzrclean-tree command is a command of the version control software we use (http://bazaar.canonical.com) and so I can't subsitute it with something else. It does however accept a parameter that prevents it from logging data, so I guess I will have to use that. Strange that they output it as error data, but I guess there's not much I can do about that then.
Chris On Nov 19, 8:14 am, Ruben Willems <[email protected]> wrote: > Hi > > that bzrclean-tree command, what is that? > I think that's the source of the problem > > if that writes output to std-err, it explains the logging of CCNet > > if you want to remove a folder and it's contents, why not use : > rmdir <folder> /q /s > works very fast > > with kind regards > Ruben Willems > > On 18 November 2011 17:28, Christopher <[email protected]> wrote: > > > > > > > > > Hi, > > > Forgive me if this is a simple question, but after doing a few > > searches in this newsgroup and the documentation, I haven't succeeded > > in finding an answer. > > > I'm using CC.NET 1.5.7256.1 and I'm running a batch file as a task > > like this: > > > <tasks> > > <exec> > > <executable>clean.bat</executable> > > <baseDirectory>$(WorkingDir)</baseDirectory> > > <description>Cleaning directory</description> > > </exec> > > .. > > </tasks> > > > The batch file calls my source control process to execute a command. > > This command returns progress data to the console, which is useful > > when studying the log and looks like this in the CC.NET console: > > > [Server C:\BuildServer\1.5\Scripts\clean.bat] D:\Server\Project>bzr > > clean-tree --force > > [Server C:\BuildServer\1.5\Scripts\clean.bat] deleting paths: > > [Server C:\BuildServer\1.5\Scripts\clean.bat] Binaries/Chilkat/ > > current/ChilkatDotNet4.dll > > [Server C:\BuildServer\1.5\Scripts\clean.bat] Binaries/Chilkat/ > > current/AnyCPU/ChilkatDotNet4.dll > > [Server C:\BuildServer\1.5\Scripts\clean.bat] Framework/QueryBuilder/ > > FsQueryBuilder/bin > > [Server C:\BuildServer\1.5\Scripts\clean.bat] Framework/QueryBuilder/ > > FsQueryBuilder/obj > > ... > > > Then, after it has succefully completed, the following log data is > > created: > > > ... > > [Server:INFO] Task error: > > <buildresults> > > <message level="Error">deleting paths:</message> > > <message level="Error"> Binaries/Chilkat/current/ > > ChilkatDotNet4.dll</message> > > <message level="Error"> Binaries/Chilkat/current/AnyCPU/ > > ChilkatDotNet4.dll</message> > > <message level="Error"> Framework/QueryBuilder/FsQueryBuilder/bin</ > > message> > > <message level="Error"> Framework/QueryBuilder/FsQueryBuilder/obj</ > > message> > > <message level="Error"> M .bzrignore</message> > > </buildresults> > > > Why does CC.NET register this output as errors and how do I prevent > > this? > > > Thanks in advance, > > > Christopher Hughes
