- Timestamp:
- 08/18/15 10:08:58 (9 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Services.WebApp/3.3
- Property svn:ignore
-
old new 1 1 Bin 2 HeuristicLab.Services.WebApp-3.3.csproj.user
-
- Property svn:ignore
-
trunk/sources/HeuristicLab.Services.WebApp/3.3/PluginManager.cs
r12514 r12878 43 43 44 44 public static string PluginsDirectory { 45 get { return string.Format(@"{0}WebApp\plugins", HttpRuntime.AppDomainAppPath); } 45 get { 46 return Path.Combine(HttpRuntime.AppDomainAppPath, "WebApp", "plugins"); 47 } 46 48 } 47 49 … … 60 62 private void OnFilesChanged(object sender, FileSystemEventArgs args) { 61 63 string path = args.FullPath.Remove(0, PluginsDirectory.Length + 1); 62 var pathParts = path.Split(Path. PathSeparator);64 var pathParts = path.Split(Path.DirectorySeparatorChar); 63 65 string pluginName = pathParts[0]; 64 if (pathParts.Length == 1) {66 if (pathParts.Length <= 2) { 65 67 switch (args.ChangeType) { 66 68 case WatcherChangeTypes.Created: … … 75 77 RenamedEventArgs renamedArgs = (RenamedEventArgs)args; 76 78 string oldPath = renamedArgs.OldFullPath.Remove(0, PluginsDirectory.Length + 1); 77 var oldPathParts = oldPath.Split(Path. PathSeparator);79 var oldPathParts = oldPath.Split(Path.DirectorySeparatorChar); 78 80 string oldPluginName = oldPathParts[0]; 79 81 plugins.Remove(oldPluginName); … … 94 96 Plugin plugin = LookupPlugin(name); 95 97 if (plugin == null) { 96 string directory = string.Format(@"{0}\{1}",PluginsDirectory, name);98 string directory = Path.Combine(PluginsDirectory, name); 97 99 if (Directory.Exists(directory)) { 98 100 plugin = new Plugin(name, directory, Configuration);
Note: See TracChangeset
for help on using the changeset viewer.