I have console application which launches some tests during build.
<exec>
<executable>Tests.exe</executable>
<baseDirectory>Q:\Software\Platform\</baseDirectory>
<buildTimeoutSeconds>100</buildTimeoutSeconds>
</exec>
And i want to redirect it's output to text file and then include it in my report file. I tried the following approach to redirect output to NativeUtilsTestReport.txt (like in command line somefile.exe > file.txt):
<exec>
<executable>Tests.exe</executable>
<baseDirectory>Q:\Software\Platform\</baseDirectory>
<buildArgs> > NativeUtilsTestReport.txt</buildArgs>
<buildTimeoutSeconds>100</buildTimeoutSeconds>
</exec>
but it doesn't seem to work. Tests works fine, but there is no text file with report.
How can i get output from this "exec" section?
I ended up with writing my own ExecutableTask for cruise control, which reads output from CCnet IIntegrationResult.TaskResults and writes it to file. Application writes to output plain text, but CCnet transforms it to following XML:
Here is code:
}
And then i call it during build: