failed builds block again

added some redirection to windows builder
This commit is contained in:
David Anderson 2007-08-03 17:26:57 +00:00
parent 807e6a0f9a
commit 164780363b
5 changed files with 28 additions and 4 deletions

View File

@ -34,6 +34,7 @@ namespace AMXXRelease
if (!BuildMod(mod))
{
System.Console.WriteLine("Mod failed to build: " + mod.GetName());
return false;
}
if (m_Cfg.CompressPath() != null)
{

View File

@ -36,7 +36,7 @@ namespace AMXXRelease
chmod.UseShellExecute = false;
Process c = Process.Start(chmod);
c.WaitForExit();
c.Close();
info.Arguments = "zcvf \"" + target + ".tar.gz\" " + file_list;
@ -44,6 +44,7 @@ namespace AMXXRelease
Process p = Process.Start(info);
p.WaitForExit();
p.Close();
}
public override void AmxxPc(string inpath, string args)
@ -59,6 +60,7 @@ namespace AMXXRelease
Process p = Process.Start(info);
p.WaitForExit();
p.Close();
}
public override string GetLibExt()
@ -94,6 +96,7 @@ namespace AMXXRelease
p = Process.Start(info);
p.WaitForExit();
p.Close();
if (!File.Exists(file))
{
@ -110,10 +113,10 @@ namespace AMXXRelease
info.FileName = dlsym;
info.Arguments = file;
info.UseShellExecute = false;
info.RedirectStandardOutput = true;
p = Process.Start(info);
p.WaitForExit();
p.Close();
string output = p.StandardOutput.ReadToEnd();
if (output.IndexOf("Handle:") == -1)

View File

@ -35,12 +35,16 @@ namespace AMXXRelease
file = ABuilder.PropSlashes(file);
if (!m_Cfg.ReadFromFile(file))
{
Console.WriteLine("Failed to read config, aborting!");
Console.WriteLine("Failed to read config, aborting.");
Console.WriteLine("Build failed!");
return;
}
if (!ValidateConfigPaths())
{
Console.WriteLine("Build failed!");
return;
}
ABuilder builder = null;
if ((int)System.Environment.OSVersion.Platform == 128)
@ -54,7 +58,14 @@ namespace AMXXRelease
Build build = new Build(m_Cfg);
builder.Build(m_Cfg, build);
if (!builder.Build(m_Cfg, build))
{
Console.WriteLine("Build failed!");
}
else
{
Console.WriteLine("Build succeeded!");
}
}
private bool ValidateConfigPaths()

View File

@ -37,8 +37,11 @@ namespace AMXXRelease
if (args != null)
info.Arguments += " " + args;
info.UseShellExecute = false;
info.RedirectStandardOutput = true;
info.RedirectStandardError = true;
Process p = Process.Start(info);
Console.WriteLine(p.StandardOutput.ReadToEnd() + "\n");
p.WaitForExit();
}
@ -77,12 +80,18 @@ namespace AMXXRelease
info.FileName = m_Cfg.DevenvPath();
info.Arguments += "/rebuild " + module.build + " " + module.vcproj + ".vcproj";
info.UseShellExecute = false;
info.RedirectStandardOutput = true;
info.RedirectStandardError = true;
Process p = Process.Start(info);
Console.WriteLine(p.StandardOutput.ReadToEnd());
p.WaitForExit();
p.Close();
if (!File.Exists(file))
{
return null;
}
return file;
}