Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/04/21 17:19:05 (3 years ago)
Author:
dpiringe
Message:

#3026

  • added some test cases for JsonInterface
  • deleted the HeuristicLab namespace part in a lot of test classes (this caused a lot of compile errors)
  • enhanced the OS path logic for absolute and relative path in JsonTemplateGenerator and JsonTemplateInstantiator
  • fixed a bug in ValueParameterConverter -> the injection logic was not working correctly
  • changed the folder determination in Main.cs for the HeadlessRun method
  • added a new abstract type of JsonItem IntervalRestrictedJsonItem for JsonItems with a need of Minimum and Maximum bounds but without a specific value
    • changed in RangedJsonItem the base class from IntervalRestrictedValueJsonItem to IntervalRestrictedJsonItem
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab/3.3/Program.cs

    r18035 r18040  
    2121
    2222using System;
     23using System.IO;
     24using System.Reflection;
    2325
    2426namespace HeuristicLab {
     
    2729    static void Main(string[] args) {
    2830      if ((args.Length >= 1) && (args[0] == "/start:JsonInterface")) {
    29         HeuristicLab.PluginInfrastructure.Main.HeadlessRun(args);
     31        try {
     32          HeuristicLab.PluginInfrastructure.Main.HeadlessRun(args);
     33        } catch (Exception e) {
     34          File.WriteAllText(@"C:\Users\David\Desktop\GP_JsonInterface_Example\log.txt", e.Message);
     35        }
     36        File.WriteAllText(@"C:\Users\David\Desktop\GP_JsonInterface_Example\done.txt", Path.GetDirectoryName(Assembly.GetEntryAssembly().Location));
    3037      } else {
    3138        HeuristicLab.PluginInfrastructure.Main.Run(args);
Note: See TracChangeset for help on using the changeset viewer.