Author: kostat
Date: 2006-08-09 12:02:36 -0400 (Wed, 09 Aug 2006)
New Revision: 63542
Modified:
trunk/mcs/class/System.Web/System.Web/XmlSiteMapProvider.cs
Log:
add TARGET_JVM ifdef
Modified: trunk/mcs/class/System.Web/System.Web/XmlSiteMapProvider.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web/XmlSiteMapProvider.cs 2006-08-09
15:56:45 UTC (rev 63541)
+++ trunk/mcs/class/System.Web/System.Web/XmlSiteMapProvider.cs 2006-08-09
16:02:36 UTC (rev 63542)
@@ -47,7 +47,9 @@
bool building;
string file;
SiteMapNode root = null;
+#if !TARGET_JVM
FileSystemWatcher watcher;
+#endif
[MonoTODO]
protected internal override void AddNode (SiteMapNode node,
SiteMapNode parentNode)
@@ -202,6 +204,7 @@
else
file =
UrlUtils.ResolvePhysicalPathFromAppAbsolute (file);
+#if !TARGET_JVM
if (File.Exists (file)) {
watcher = new FileSystemWatcher ();
watcher.Path = Path.GetFullPath
(Path.GetDirectoryName (file));
@@ -209,6 +212,7 @@
watcher.Changed += new FileSystemEventHandler
(OnFileChanged);
watcher.EnableRaisingEvents = true;
}
+#endif
}
[MonoTODO]
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches