Hi,
I am a developer on the horn OSS project that sets out to ease the pain of building other OSS projects. We are attempting to make horn a ruby gems like experience. One of the many challenges of horn is having to deal with all the various build engines like Nant, powershell, msbuild and rake which is the point of this post.
Horn has 2 manifestations, it runs as a cmd line tool and it also runs as a windows service where it builds all the various packages which can be downloaded from this website.
Certain OSS projects use rake to build their source code which has eventually brought me to the point of this post.
I cannot get the rake process to run from the windows service while the exact same code can start the rake process without any issues when running from the command line. The reason that rake does run from the cmd line tool could be because it is associated with a window although I cannot rightly say. No exception is thrown but the process just does not start.
The funny thing is that every other .exe works fine and it is only rake that is causing the problem.
Here is the code to start that creates the process:
public IProcess GetProcess(string pathToBuildTool, string cmdLineArguments, string workingDirectoryPath)
{
var psi = new ProcessStartInfo(pathToBuildTool, cmdLineArguments)
{
UseShellExecute = false,
RedirectStandardOutput = true,
WorkingDirectory = workingDirectoryPath,
Arguments = cmdLineArguments
};
return new DiagnosticsProcess(Process.Start(psi));
}
Does anyone have any suggestions as to what the problem is?
Cheers
Paul