protected boolean checkEnvironment ( ) { home = getHomeDir ( ) . getAbsoluteFile ( ) ; home . mkdirs ( ) ; LOGGER . info ( getApplicationName ( ) + " home directory: " + home ) ; // check that home exists (as mkdirs could have failed silently), otherwise throw a meaningful error if ( ! home . exists ( ) ) { context . setAttribute ( APP , new NoHomeDirError ( home ) ) ; return false ; } return true ; }
Performs pre start - up environment check .