Updated Build.exe and Prebuild.xml to copy data files and dll.config files in all cases.

This commit is contained in:
the_fiddler 2007-10-20 14:17:51 +00:00
parent 81ba27da98
commit 5b7c1e2384

View file

@ -251,9 +251,10 @@ namespace OpenTK.Build
Directory.CreateDirectory(ExamplePath); Directory.CreateDirectory(ExamplePath);
Directory.CreateDirectory(DataPath); Directory.CreateDirectory(DataPath);
// Handled by Prebuild.exe now.
// Copy Data files for the Examples. // Copy Data files for the Examples.
foreach (string file in Directory.GetFiles(DataSourcePath)) //foreach (string file in Directory.GetFiles(DataSourcePath))
File.Copy(file, Path.Combine(DataPath, Path.GetFileName(file))); // File.Copy(file, Path.Combine(DataPath, Path.GetFileName(file)));
// Move the libraries and the config files. // Move the libraries and the config files.
FindFiles(SourcePath, "*.dll", dll_matches); FindFiles(SourcePath, "*.dll", dll_matches);
@ -329,6 +330,8 @@ namespace OpenTK.Build
static void ExecuteProcess(string path, string args) static void ExecuteProcess(string path, string args)
{ {
using (Process p = new Process()) using (Process p = new Process())
{
try
{ {
ProcessStartInfo sinfo = new ProcessStartInfo(); ProcessStartInfo sinfo = new ProcessStartInfo();
if (Environment.OSVersion.Platform == PlatformID.Unix && !path.ToLower().Contains("nant")) if (Environment.OSVersion.Platform == PlatformID.Unix && !path.ToLower().Contains("nant"))
@ -359,6 +362,12 @@ namespace OpenTK.Build
p.WaitForExit(); p.WaitForExit();
} }
catch (Exception e)
{
Console.WriteLine("Failed to execute process: {0}", p.ProcessName);
}
}
} }
static void p_OutputDataReceived(object sender, DataReceivedEventArgs e) static void p_OutputDataReceived(object sender, DataReceivedEventArgs e)