Changeset 382 in tmcsimulator for trunk/src/tmcsim/cadsimulator/CADServer.java


Ignore:
Timestamp:
04/17/2019 04:15:29 PM (7 years ago)
Author:
jdalbey
Message:

CADserver.java modified to look for a system property PROP_FILE provided at the command line so it's property file can be provided dynamically. SimulationManager?.java modified to accept an optional command line argument, the name of the script file to load when the pgm launches. Create a bin folder with shell scripts to start the complete system in different configurations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tmcsim/cadsimulator/CADServer.java

    r360 r382  
    6868{ 
    6969 
    70     private static final String CONFIG_FILE_NAME = "cad_simulator_config.properties"; 
     70    private static String CONFIG_FILE_NAME = "cad_simulator_config.properties"; 
    7171    /** 
    7272     * Error logger. 
     
    425425            System.setProperty("CONFIG_DIR", "config"); 
    426426        } 
     427        if (System.getProperty("PROP_FILE") != null) 
     428        { 
     429            CONFIG_FILE_NAME = System.getProperty("PROP_FILE"); 
     430        } 
    427431        try 
    428432        { 
Note: See TracChangeset for help on using the changeset viewer.