Changeset 49 in tmcsimulator


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
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/IDE_metadata/NetBeans/TMCSim/build.xml

    r47 r49  
    100100       basedir="${build.dir}/classes" 
    101101       includes="tmcsim/cadsimulator/**, tmcsim/common/**, tmcsim/interfaces/**, 
    102                  tmcsim/client/cadclientgui/**, tmcsim/cadmodels/**" 
     102                 tmcsim/client/cadclientgui/**, tmcsim/cadmodels/**, 
     103                 tmcsim/application.properties" 
    103104       excludes="**/Test.class"> 
    104105        <zipgroupfileset dir="dist/lib" includes="xercesImpl.jar"/> 
  • trunk/config/cad_simulator_config.properties

    r45 r49  
    44CMSDiversionXML        = config/cmsdiversions.xml 
    55AudioFileLocation      = audio/ 
     6#UserInterface          = tmcsim.cadsimulator.viewer.CADConsoleViewer 
    67UserInterface          = tmcsim.cadsimulator.viewer.CADSimulatorViewer 
    7 #UserInterface          = tmcsim.cadsimulator.viewer.CADConsoleViewer 
    88ParamicsProperties     = config/cad_simulator_paramics_config.properties 
    99ATMSProperties         = config/cad_simulator_atms_config.properties 
  • 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; 
  • trunk/test/tmcsim/cadsimulator/viewer/CADSimulatorViewModelTest.java

    r47 r49  
    33import java.util.logging.Level; 
    44import java.util.logging.Logger; 
     5import static junit.framework.Assert.assertEquals; 
     6import static junit.framework.Assert.assertTrue; 
    57import org.uispec4j.*; 
    68import tmcsim.cadsimulator.viewer.model.CADSimulatorModel; 
Note: See TracChangeset for help on using the changeset viewer.