private void startupWatchdir ( ) throws Exception { File dirToWatch ; if ( this . configuration . getProcessConfigDirOrFile ( ) . isFile ( ) ) { dirToWatch = new File ( FilenameUtils . getFullPath ( this . configuration . getProcessConfigDirOrFile ( ) . getAbsolutePath ( ) ) ) ; } else { dirToWatch = this . configuration . getProcessConfigDirOrFile ( ) ; } // start the watcher this . watcher = new WatchDir ( dirToWatch , this ) ; this . watcher . start ( ) ; }
Startup the watchdir service .