@ Override public synchronized void rebuildModifiedBundles ( ) { stopProcessIfNeeded ( ) ; StopWatch stopWatch = ThreadLocalJawrContext . getStopWatch ( ) ; if ( config . getUseSmartBundling ( ) ) { // Wait until all watch event has been processed if ( watcher != null ) { while ( ! watcher . hasNoEventToProcess ( ) ) { try { if ( LOGGER . isInfoEnabled ( ) ) { LOGGER . info ( "Wait until there is no more watch event to process" ) ; } Thread . sleep ( config . getSmartBundlingDelayAfterLastEvent ( ) ) ; } catch ( InterruptedException e ) { // Do nothing } } } List < JoinableResourceBundle > bundlesToRebuild = getBundlesToRebuild ( ) ; for ( JoinableResourceBundle bundle : bundlesToRebuild ) { bundle . resetBundleMapping ( ) ; } build ( bundlesToRebuild , true , stopWatch ) ; } else { LOGGER . warn ( "You should turn on \"smart bundling\" feature to be able to rebuild modified bundles." ) ; } }
Rebuilds the bundles given in parameter