Changeset 5707 for branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Core/3.3/PluginCache.cs
- Timestamp:
- 03/16/11 13:31:37 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Core/3.3/PluginCache.cs
r5037 r5707 24 24 using System.IO; 25 25 using System.Linq; 26 using System.Reflection; 26 27 using System.Runtime.CompilerServices; 28 using System.Threading; 27 29 using HeuristicLab.Hive.Contracts.BusinessObjects; 28 30 using HeuristicLab.Hive.Slave.Communication; 29 31 using HeuristicLab.PluginInfrastructure; 30 32 using HeuristicLab.PluginInfrastructure.Manager; 31 using System.Threading;32 using System.Reflection;33 33 34 34 namespace HeuristicLab.Hive.Slave.Core { … … 71 71 if (!Directory.Exists(PluginCacheDir)) { 72 72 Directory.CreateDirectory(PluginCacheDir); 73 string baseDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); 74 CopyPluginInfrastructureFiles(baseDir, PluginCacheDir); 73 75 } 74 76 pm.DiscoverAndCheckPlugins(); … … 104 106 // copy files from PluginInfrastructure, which are not declared 105 107 string baseDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); 106 CopyFile(baseDir, targetDir, "HeuristicLab.PluginInfrastructure-3.3.dll"); 107 CopyFile(baseDir, targetDir, "ICSharpCode.SharpZipLib.dll"); 108 CopyFile(baseDir, targetDir, "ICSharpCode.SharpZipLib License.txt"); 108 CopyPluginInfrastructureFiles(baseDir, targetDir); 109 109 110 110 // copy slave plugins, otherwise its not possible to register the UnhandledException handler to the appdomain 111 CopyFile(baseDir, targetDir, "HeuristicLab.Hive.Slave.Core-3.3.dll"); 112 CopyFile(baseDir, targetDir, "HeuristicLab.Hive.Slave.Common-3.3.dll"); 113 CopyFile(baseDir, targetDir, "HeuristicLab.Hive.Slave.Communication-3.3.dll"); 114 CopyFile(baseDir, targetDir, "HeuristicLab.Hive.Slave.ExecutionEngine-3.3.dll"); 115 } 111 CopySlaveFiles(baseDir, targetDir); 112 } 113 } 114 115 private void CopySlaveFiles(string sourceDir, String targetDir) { 116 CopyFile(sourceDir, targetDir, "HeuristicLab.Hive.Slave.Core-3.3.dll"); 117 CopyFile(sourceDir, targetDir, "HeuristicLab.Hive.Slave.Common-3.3.dll"); 118 CopyFile(sourceDir, targetDir, "HeuristicLab.Hive.Slave.Communication-3.3.dll"); 119 CopyFile(sourceDir, targetDir, "HeuristicLab.Hive.Slave.ExecutionEngine-3.3.dll"); 120 } 121 122 private void CopyPluginInfrastructureFiles(string sourceDir, String targetDir) { 123 CopyFile(sourceDir, targetDir, "HeuristicLab.PluginInfrastructure-3.3.dll"); 124 CopyFile(sourceDir, targetDir, "ICSharpCode.SharpZipLib.dll"); 125 CopyFile(sourceDir, targetDir, "ICSharpCode.SharpZipLib License.txt"); 116 126 } 117 127
Note: See TracChangeset
for help on using the changeset viewer.