public virtual string GetStreamName (string configPath)
{
if (configPath == MachinePath) {
if (map == null)
return System.Runtime.InteropServices.RuntimeEnvironment.SystemConfigurationFile;
else
return map.MachineConfigFilename;
} else if (configPath == MachineWebPath) {
string mdir;
if (map == null)
#if TARGET_J2EE
{
// check META-INF/web.config exists
java.lang.ClassLoader cl = (java.lang.ClassLoader) AppDomain.CurrentDomain.GetData ("GH_ContextClassLoader");
if (cl == null)
return null;
java.io.InputStream wcs = cl.getResourceAsStream ("META-INF/web.config");
if (wcs == null)
return null;
wcs.close ();
return "/META-INF/web.config";
}
#else
mdir = Path.GetDirectoryName (System.Runtime.InteropServices.RuntimeEnvironment.SystemConfigurationFile);
#endif
else
mdir = Path.GetDirectoryName (map.MachineConfigFilename);
return GetWebConfigFileName (mdir);
}