Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2008-12-16 06:34:22 +0300
committerMiguel de Icaza <miguel@gnome.org>2008-12-16 06:34:22 +0300
commit21d7e922371bfbea534d065cbea0b0854c73bb10 (patch)
tree218ade18ad7afeabeba9f59efeae90389c10b858 /webcompare
parent619d6e41a698cde59a1021ddd2cd53d09e8ecc5b (diff)
Add some logging errors, work with Mod_mono
svn path=/trunk/mono-tools/; revision=121576
Diffstat (limited to 'webcompare')
-rw-r--r--webcompare/Global.asax16
-rw-r--r--webcompare/Makefile2
2 files changed, 15 insertions, 3 deletions
diff --git a/webcompare/Global.asax b/webcompare/Global.asax
index 7d0734c8..c922ce17 100644
--- a/webcompare/Global.asax
+++ b/webcompare/Global.asax
@@ -70,9 +70,14 @@ public class CompareParameters {
public CompareContext MakeCompareContext ()
{
- string info_file = Path.Combine (Path.Combine ("masterinfos", InfoDir), Assembly) + ".xml";
- string dll_file = Path.Combine (BinDir, Assembly) + ".dll";
+ string info_file = Path.Combine (HttpRuntime.AppDomainAppPath, Path.Combine (Path.Combine ("masterinfos", InfoDir), Assembly) + ".xml");
+ string dll_file = Path.Combine (HttpRuntime.AppDomainAppPath, Path.Combine (BinDir, Assembly) + ".dll");
+ using (var fs = File.OpenWrite ("/tmp/mylog")){
+ var sw = new StreamWriter (fs);
+ sw.WriteLine ("Comparing {0} and {1}", info_file, dll_file);
+ sw.Flush ();
+ }
Console.WriteLine ("Comparing {0} and {1}", info_file, dll_file);
if (!File.Exists (info_file))
throw new Exception (String.Format ("File {0} does not exist", info_file));
@@ -82,6 +87,9 @@ public class CompareParameters {
CompareContext cc = new CompareContext (
() => new MasterAssembly (info_file),
() => new CecilAssembly (dll_file));
+ cc.ProgressChanged += delegate (object sender, CompareProgressChangedEventArgs a){
+ Console.Error.WriteLine (a.Message);
+ };
ManualResetEvent r = new ManualResetEvent (false);
cc.Finished += delegate { r.Set (); };
Console.WriteLine ("Starting Compare");
@@ -95,4 +103,8 @@ public class CompareParameters {
public static Dictionary<CompareParameters,CompareContext> CompareCache = new Dictionary<CompareParameters,CompareContext> ();
+void Application_Start ()
+{
+}
+
</script> \ No newline at end of file
diff --git a/webcompare/Makefile b/webcompare/Makefile
index 72b281d9..19c9615b 100644
--- a/webcompare/Makefile
+++ b/webcompare/Makefile
@@ -26,4 +26,4 @@ run: all
xsp2
push: all
- scp --rsh=ssh -pr bin Global.asax *.gif *.png Web.config status.aspx mono-web@www.go-mono.com:go-mono/status/ \ No newline at end of file
+ rsync --rsh=ssh -pr bin Global.asax *.gif *.png Web.config index.aspx status.aspx mono-web@www.go-mono.com:go-mono/status/ \ No newline at end of file