Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register
Show
Ignore:
Timestamp:
02/19/08 17:54:38 (11 months ago)
Author:
bwolfe
Message:

Adding a runtime property option to set the directory openmrs uses for application data

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs/trunk/src/api/org/openmrs/api/context/Context.java

    r3038 r3426  
    546546         */ 
    547547        public static void startup(Properties props) { 
     548                // do any context database specific startup 
    548549                getContextDAO().startup(props); 
     550                 
     551                // find/set/check whether the current database version is compatible 
    549552                checkDatabaseVersion(); 
    550553                 
    551                 // Loop over each "module" and startup each with the custom 
    552                 // properties 
     554                // this should be first in the startup routines so that the application 
     555                // data directory can be set from the runtime properties 
     556                OpenmrsUtil.startup(props); 
     557                 
     558                // Loop over each module and startup each with these custom properties 
    553559                ModuleUtil.startup(props); 
    554                 OpenmrsUtil.startup(props); 
     560                 
     561                // start the scheduled tasks 
    555562                SchedulerUtil.startup(props); 
    556563                 
     564                // add any privileges/roles that /must/ exist for openmrs to work correctly. 
     565                // TODO: Should this be one of the first things executed at startup?  
    557566                checkCoreDataset(); 
    558567        }