TARGET_JVM: handle special case for machine config
authorKonstantin Triger <kostat@mono-cvs.ximian.com>
Thu, 24 Aug 2006 15:13:28 +0000 (15:13 -0000)
committerKonstantin Triger <kostat@mono-cvs.ximian.com>
Thu, 24 Aug 2006 15:13:28 +0000 (15:13 -0000)
svn path=/trunk/mcs/; revision=64308

mcs/class/System.Configuration/System.Configuration/InternalConfigurationHost.cs

index 3b1235b2fd3766eb70175adc9be6a19bb74703c3..0f2ffb3896ae3408679aa8333f280258e17dd797 100644 (file)
@@ -165,6 +165,10 @@ namespace System.Configuration
                
                public virtual Stream OpenStreamForRead (string streamName)
                {
+#if TARGET_JVM
+                       if (String.CompareOrdinal (streamName, "/machine.config"))
+                               return (Stream) vmw.common.IOUtils.getStreamForGHConfigs (streamName);
+#endif
                        if (!File.Exists (streamName))
                                throw new ConfigurationException ("File '" + streamName + "' not found");