[longomatch] Use the shipped mono config file for the migration tool



commit 00236a69369ca253b73e857ad95edfb9bed4d4ae
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Fri Feb 20 18:13:50 2015 +0100

    Use the shipped mono config file for the migration tool

 LongoMatch.Services/Services/ToolsManager.cs |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Services/Services/ToolsManager.cs b/LongoMatch.Services/Services/ToolsManager.cs
index c44591a..e7d3f3d 100644
--- a/LongoMatch.Services/Services/ToolsManager.cs
+++ b/LongoMatch.Services/Services/ToolsManager.cs
@@ -208,6 +208,8 @@ namespace LongoMatch.Services
                        startInfo.WorkingDirectory = Path.GetFullPath (Path.Combine (Config.baseDirectory, 
"bin"));
                        if (System.Environment.OSVersion.Platform == PlatformID.Win32NT) {
                                startInfo.FileName = Path.Combine (Config.baseDirectory, "bin", 
"mono-sgen.exe");
+                               startInfo.EnvironmentVariables["MONO_CFG_DIR"] = Path.GetFullPath (
+                                       Path.Combine (Config.baseDirectory, "etc"));
                        } else {
                                startInfo.FileName = "mono-sgen";
                        }
@@ -216,6 +218,9 @@ namespace LongoMatch.Services
                        } else {
                                startInfo.EnvironmentVariables.Add ("MONO_PATH", monoPath);
                        }
+                       Log.Information (String.Format ("Launching migration tool {0} {1}",
+                                                       startInfo.FileName,
+                                                       startInfo.EnvironmentVariables["MONO_PATH"]));
                        using (Process exeProcess = Process.Start(startInfo)) {
                                exeProcess.WaitForExit ();
                                dbManager.UpdateDatabases ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]