Changeset 1499
- Timestamp:
- 04/03/09 12:30:43 (16 years ago)
- Location:
- trunk/sources
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Core/Core.cs
r1487 r1499 45 45 using HeuristicLab.Hive.Client.Core.JobStorage; 46 46 47 48 47 namespace HeuristicLab.Hive.Client.Core { 49 48 /// <summary> … … 206 205 207 206 PluginManager.Manager.Initialize(); 208 AppDomain appDomain = PluginManager.Manager.CreateAndInitAppDomainWithSandbox(e.Result.Job.Id.ToString(), sandboxed, typeof(TestJob)); 207 208 AppDomain appDomain = PluginManager.Manager.CreateAndInitAppDomainWithSandbox(e.Result.Job.Id.ToString(), sandboxed, typeof(HeuristicLab.Hive.Engine.HiveEngine)); 209 209 appDomain.UnhandledException += new UnhandledExceptionEventHandler(appDomain_UnhandledException); 210 210 lock (engines) { -
trunk/sources/HeuristicLab.Hive.Client.Core/HeuristicLab.Hive.Client.Core.csproj
r1474 r1499 143 143 <Name>HeuristicLab.Hive.Contracts</Name> 144 144 </ProjectReference> 145 <ProjectReference Include="..\HeuristicLab.Hive.Engine\HeuristicLab.Hive.Engine.csproj"> 146 <Project>{C8FEDAC1-0326-4293-B585-F0FEDDEDFC11}</Project> 147 <Name>HeuristicLab.Hive.Engine</Name> 148 </ProjectReference> 145 149 <ProjectReference Include="..\HeuristicLab.Hive.JobBase\HeuristicLab.Hive.JobBase.csproj"> 146 150 <Project>{21187322-52DD-4243-80A4-A85F0263E63B}</Project> -
trunk/sources/HeuristicLab.Hive.Engine/HeuristicLab.Hive.Engine.csproj
r1474 r1499 13 13 <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> 14 14 <FileAlignment>512</FileAlignment> 15 <SignAssembly>true</SignAssembly> 16 <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile> 15 17 </PropertyGroup> 16 18 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> … … 122 124 </ItemGroup> 123 125 <ItemGroup> 126 <None Include="HeuristicLab.snk" /> 124 127 <None Include="Properties\AssemblyInfo.frame" /> 125 128 </ItemGroup> -
trunk/sources/HeuristicLab.Hive.Engine/HeuristicLabHiveEnginePlugin.cs
r1448 r1499 33 33 [Dependency(Dependency = "HeuristicLab.Core-3.2")] 34 34 [Dependency(Dependency = "HeuristicLab.Hive.JobBase-3.2")] 35 [Dependency(Dependency = "HeuristicLab.SequentialEngine-3.2")] 35 36 public class HeuristicLabHiveEnginePlugin : PluginBase { 36 37 } -
trunk/sources/HeuristicLab.PluginInfrastructure/PluginManager.cs
r1470 r1499 241 241 public List<PluginInfo> GetDependentPlugins(PluginInfo pluginInfo) { 242 242 List<PluginInfo> mergedList = new List<PluginInfo>(); 243 foreach (PluginInfo plugin in InstalledPlugins) { 244 if (plugin.Dependencies.Contains(pluginInfo)) { 245 if (!mergedList.Contains(plugin)) { 246 mergedList.Add(plugin); 247 } 248 // for each of the dependent plugins add the list of transitively dependent plugins 249 // make sure that only one entry for each plugin is added to the merged list 250 GetDependentPlugins(plugin).ForEach(delegate(PluginInfo dependentPlugin) { 251 if (!mergedList.Contains(dependentPlugin)) { 252 mergedList.Add(dependentPlugin); 253 } 254 }); 255 } 243 //Bugfix the hell out of this... 244 //Bugfixed the hell out of this... 245 foreach (PluginInfo info in pluginInfo.Dependencies) { 246 if (!mergedList.Contains(info)) { 247 mergedList.Add(info); 248 AddDependenciesRecursive(info, mergedList); 249 } 256 250 } 257 251 return mergedList; 252 } 253 254 private void AddDependenciesRecursive(PluginInfo info, List<PluginInfo> mergedList) { 255 //if we've already processed this element => STOP IT! 256 if(!mergedList.Contains(info)) { 257 mergedList.Add(info); 258 return; 259 } 260 foreach (PluginInfo depinfo in info.Dependencies) 261 AddDependenciesRecursive(depinfo, mergedList); 258 262 } 259 263
Note: See TracChangeset
for help on using the changeset viewer.