Changeset 33 in tmcsimulator for trunk/src/tmcsim/client/CADClient.java
- Timestamp:
- 04/29/2016 12:55:04 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/tmcsim/client/CADClient.java (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tmcsim/client/CADClient.java
r2 r33 60 60 * @version $Date: 2009/04/17 16:27:47 $ $Revision: 1.8 $ 61 61 */ 62 /*Hai :3 yeeeee*/ 62 63 63 public class CADClient extends UnicastRemoteObject implements 64 64 CADClientInterface { … … 113 113 private CADClientInterface client = this; 114 114 115 private static final String CONFIG_FILE_NAME = "cad_client_config.properties"; 116 115 117 /** 116 118 * Constructor. Initialize data from parsed properties file. Create a socket … … 319 321 e); 320 322 } 323 321 324 322 325 // Ensure that the properties file does not have null values for the … … 473 476 */ 474 477 public static void main(String[] args) { 475 System.setProperty("CAD_CLIENT_PROPERTIES", 476 "config/cad_client_config.properties"); 478 if(System.getProperty("CONFIG_DIR") == null){ 479 System.setProperty("CONFIG_DIR", "config"); 480 } 477 481 478 482 try { 479 if (System.getProperty("CAD_CLIENT_PROPERTIES") != null) { 480 UIManager.setLookAndFeel(UIManager 481 .getSystemLookAndFeelClassName()); 482 483 new CADClient(System.getProperty("CAD_CLIENT_PROPERTIES")); 484 } else { 485 throw new Exception( 486 "CAD_CLIENT_PROPERTIES system property not defined."); 487 } 483 UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); 484 new CADClient(System.getProperty("CONFIG_DIR") + System.getProperty("file.separator") + CONFIG_FILE_NAME); 485 488 486 } catch (Exception e) { 489 487 cadClientLogger.logp(Level.SEVERE, "SimulationManager", "Main",
Note: See TracChangeset
for help on using the changeset viewer.
