Changeset 658 in tmcsimulator for trunk/src/tmcsim/simulationmanager/SimulationManager.java
- Timestamp:
- 09/12/2022 02:19:40 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tmcsim/simulationmanager/SimulationManager.java
r559 r658 48 48 private static final String CONFIG_FILE_NAME = "sim_manager_config.properties"; 49 49 /* 50 * Name of filesystem folder that contains Scenario xml files. 50 * Default name of folder that contains Scenario xml files. 51 * Actual name retrieved from config file. 51 52 */ 52 public static final String kScenarioFolder= "Scenarios";53 public static String SCENARIOS_DIR = "Scenarios"; 53 54 /** 54 55 * Error logger. … … 66 67 CAD_SIM_HOST("CADSimulatorHost"), 67 68 CAD_SIM_PORT("CADSimulatorRMIPort"), 68 SC RIPT_DIR("ScriptDir"),69 SCENARIOS_DIR("ScenariosDir"), 69 70 FAKE_PARAMICS("FakeParamicsConnection"); 70 71 public String name; … … 111 112 simManagerProperties.load(new FileInputStream(new File(propertiesFile))); 112 113 113 S imulationManagerView.SCRIPT_DIR =114 simManagerProperties.getProperty(PROPERTIES.SC RIPT_DIR.name).trim();114 SCENARIOS_DIR = 115 simManagerProperties.getProperty(PROPERTIES.SCENARIOS_DIR.name).trim(); 115 116 116 117 //make sure properties aren't null … … 229 230 { 230 231 arg1 = args[0]; 231 File scriptFile = new File( kScenarioFolder+ System.getProperty("file.separator") + arg1);232 File scriptFile = new File(SCENARIOS_DIR+ System.getProperty("file.separator") + arg1); 232 233 // if the script file exists, load it and show name in title bar 233 234 if (scriptFile.exists())
Note: See TracChangeset
for help on using the changeset viewer.
