Author: spivak
Date: 2006-12-11 07:48:20 -0500 (Mon, 11 Dec 2006)
New Revision: 69316

Modified:
   trunk/mcs/class/System.Web/System.Web.UI/TemplateControl.jvm.cs
Log:
Support for so-called plain webapp, like aspnetconfig application.

Modified: trunk/mcs/class/System.Web/System.Web.UI/TemplateControl.jvm.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/TemplateControl.jvm.cs     
2006-12-11 12:37:59 UTC (rev 69315)
+++ trunk/mcs/class/System.Web/System.Web.UI/TemplateControl.jvm.cs     
2006-12-11 12:48:20 UTC (rev 69316)
@@ -318,6 +318,11 @@
                        string assemblyName = "dll.ghres";
                        
                        java.io.InputStream inputStream = 
contextClassLoader.getResourceAsStream(assemblyName);
+
+                       //flat webapp support
+                       if (inputStream == null)
+                               
contextClassLoader.getResourceAsStream(this.GetType().Assembly.GetName().Name + 
".ghres");
+
                        System.IO.Stream strim = null;
                        if (inputStream == null) {
                                string descPath = String.Join("/", new 
string[]{"assemblies", this.GetType().Assembly.GetName().Name, assemblyName});

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to