From: <mol...@us...> - 2008-05-06 10:55:38
|
Revision: 811 http://openutils.svn.sourceforge.net/openutils/?rev=811&view=rev Author: molaschi Date: 2008-05-06 03:55:44 -0700 (Tue, 06 May 2008) Log Message: ----------- Catch events when webapp is fully configured and bootstrapped Modified Paths: -------------- trunk/openutils-mgnlbootstrapsync/src/main/java/it/openutils/mgnlbootstrapsync/listener/BootstrapSyncListener.java Modified: trunk/openutils-mgnlbootstrapsync/src/main/java/it/openutils/mgnlbootstrapsync/listener/BootstrapSyncListener.java =================================================================== --- trunk/openutils-mgnlbootstrapsync/src/main/java/it/openutils/mgnlbootstrapsync/listener/BootstrapSyncListener.java 2008-05-05 23:12:30 UTC (rev 810) +++ trunk/openutils-mgnlbootstrapsync/src/main/java/it/openutils/mgnlbootstrapsync/listener/BootstrapSyncListener.java 2008-05-06 10:55:44 UTC (rev 811) @@ -1,5 +1,6 @@ package it.openutils.mgnlbootstrapsync.listener; +import info.magnolia.cms.beans.config.ConfigLoader; import it.openutils.mgnlbootstrapsync.watch.BootstrapSyncRepositoryWatch; import java.util.ArrayList; @@ -62,6 +63,11 @@ @Override public void onEvent(EventIterator events) { + if (!ConfigLoader.isConfigured() || ConfigLoader.isBootstrapping()) + { + return; + } + List<JcrOperation> operations = new ArrayList<JcrOperation>(); while (events.hasNext()) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |