public Build(BuildInfo buildInfo)
{
this.buildInfo = buildInfo;
Config.PrebuildConfig cfg = Config.getDataForBuild(buildInfo);
if (cfg.ProjectDir != "")
{
if (Path.IsPathRooted(cfg.ProjectDir))
{
sProjectDir = cfg.ProjectDir;
}
else
{
sProjectDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\" + cfg.ProjectDir;
}
}
sProjectDir = sProjectDir.EndsWith(@"\") ? sProjectDir : sProjectDir + @"\";
commands = new LinkedList<string>();
outputList = new ConcurrentQueue<string>();
completed = false;
commands.AddFirst("echo \"Project directory is set to: " + cfg.ProjectDir + "\"");
}