Changeset 18035
- Timestamp:
- 07/27/21 17:27:45 (3 years ago)
- Location:
- branches/3026_IntegrationIntoSymSpace
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface
-
Property
svn:ignore
set to
Plugin.cs
-
Property
svn:ignore
set to
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.App
-
Property
svn:ignore
set to
Plugin.cs
-
Property
svn:ignore
set to
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration
-
Property
svn:ignore
set to
Plugin.cs
-
Property
svn:ignore
set to
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.PluginInfrastructure/3.3/Main.cs
r17180 r18035 21 21 22 22 using System; 23 using System.IO; 24 using System.Linq; 23 25 using System.Windows.Forms; 26 using HeuristicLab.PluginInfrastructure.Manager; 24 27 using HeuristicLab.PluginInfrastructure.Starter; 25 28 … … 50 53 } 51 54 } 55 56 public static void HeadlessRun(string[] args) { 57 string pluginPath = Path.GetFullPath(Application.StartupPath); 58 var pluginManager = new PluginManager(pluginPath); 59 pluginManager.DiscoverAndCheckPlugins(); 60 61 var arguments = CommandLineArgumentHandling.GetArguments(args); 62 foreach (var argument in arguments) { 63 if (argument is StartArgument) { 64 var arg = (StartArgument)argument; 65 var appDesc = (from desc in pluginManager.Applications 66 where desc.Name.Equals(arg.Value) 67 select desc).SingleOrDefault(); 68 if (appDesc != null) { 69 try { 70 pluginManager.Run(appDesc, arguments); 71 } catch (Exception e) { 72 Console.WriteLine(e.Message); 73 } 74 } 75 } 76 } 77 } 52 78 } 53 79 } -
branches/3026_IntegrationIntoSymSpace/HeuristicLab/3.3/Program.cs
r17180 r18035 26 26 [STAThread] 27 27 static void Main(string[] args) { 28 HeuristicLab.PluginInfrastructure.Main.Run(args); 28 if ((args.Length >= 1) && (args[0] == "/start:JsonInterface")) { 29 HeuristicLab.PluginInfrastructure.Main.HeadlessRun(args); 30 } else { 31 HeuristicLab.PluginInfrastructure.Main.Run(args); 32 } 29 33 } 30 34 }
Note: See TracChangeset
for help on using the changeset viewer.