Hi,
I have setup a CCNet server farm, with one of the nodes running on
linux+mono. The problem is that failed NAnt builds are not reported as
such. I have tinkered a bit with the code today and managed to create
a test case (attached). When 'nant' is called from console, it's
return status is correctly returned with 'echo $?'. However, it is not
returned through Process.ExitCode. The same happens when I run 'mono
/usr/share/NAnt/bin/NAnt.exe', bypassing the wrapper script. Any ideas
what is wrong?
Related bug on CCNet Jira: http://jira.public.thoughtworks.org/browse/CCNET-830
Regards,
Leszek Ciesielski
using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using System.Threading;
namespace exit
{
class Program
{
static void Main(string[] args)
{
Process proc = new Process();
proc.StartInfo = new ProcessStartInfo("false");
proc.Start();
while(!proc.HasExited)
Thread.Sleep(100);
Console.WriteLine("Exit status of false was {0}",
proc.ExitCode); //1
proc.StartInfo = new ProcessStartInfo("true");
proc.Start();
while (!proc.HasExited)
Thread.Sleep(100);
Console.WriteLine("Exit status of true was {0}",
proc.ExitCode); //0
proc.StartInfo = new ProcessStartInfo("nant");
proc.Start(); // should fail if not *.build found
while (!proc.HasExited)
Thread.Sleep(100);
Console.WriteLine("Exit status of nant was {0}",
proc.ExitCode);
}
}
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers