Changeset 49 in tmcsimulator for trunk/src/tmcsim


Ignore:
Timestamp:
07/02/2016 09:43:59 AM (10 years ago)
Author:
jdalbey
Message:

CADSimulatorViewer.java Add log message for missing application.properties. Update build.xml.

Location:
trunk/src/tmcsim
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tmcsim/application.properties

    r47 r49  
    1 #Tue, 28 Jun 2016 14:56:40 -0700 
     1#Sat, 02 Jul 2016 09:45:14 -0700 
    22 
    3 Application.revision=44 
     3Application.revision=47 
    44 
    5 Application.buildnumber=10 
     5Application.buildnumber=19 
  • trunk/src/tmcsim/cadsimulator/CADSimulator.java

    r44 r49  
    190190            cadSimulatorProperties = new Properties(); 
    191191            cadSimulatorProperties.load(new FileInputStream(propertiesFile)); 
     192            cadSimLogger.logp(Level.INFO, "CADSimulator", "Constructor", 
     193                    "Properties loaded from " + propertiesFile); 
    192194        } catch (Exception e) 
    193195        { 
     
    215217                Class uiClass = Class.forName(userInterfaceName); 
    216218                theViewer = (CADViewer) uiClass.newInstance(); 
    217             } catch (Throwable exc) 
     219            } catch (Exception exc) 
    218220            { 
    219221                cadSimLogger.logp(Level.SEVERE, "CADSimulator", "Constructor", 
    220                         "Unable to instantiate user interface: " + userInterfaceName); 
     222                        "Unable to instantiate user interface: " + userInterfaceName 
     223                        + " " + exc); 
    221224                throw new SimulationException(SimulationException.INITIALIZE_ERROR); 
    222225            } 
  • trunk/src/tmcsim/cadsimulator/viewer/CADSimulatorViewer.java

    r44 r49  
    8080        { 
    8181            Logger.getLogger("tmcsim/cadsimulator").log(Level.SEVERE, 
    82                     "CADSimulatorView.getAppVersion()", 
    83                     "IOError reading " + propfilename); 
     82                    "CADSimulatorView.getAppVersion()." 
     83                    + " IOError reading " + propfilename); 
     84        } catch (NullPointerException npe) 
     85        { 
     86            Logger.getLogger("tmcsim/cadsimulator").log(Level.SEVERE, 
     87                    "CADSimulatorView.getAppVersion().load." 
     88                    + " Missing file: " + propfilename); 
    8489        } 
    8590        return "revision: " + version; 
Note: See TracChangeset for help on using the changeset viewer.