You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2014/05/26 11:20:33 UTC

svn commit: r1597536 - /sling/trunk/tooling/ide/eclipse-core/src/org/apache/sling/ide/eclipse/core/internal/SlingLaunchpadBehaviour.java

Author: rombert
Date: Mon May 26 09:20:32 2014
New Revision: 1597536

URL: http://svn.apache.org/r1597536
Log:
SLING-3081 - Do not re-publish modules when starting the launchpad for
the first time

Set the module publish state to none even when we ignore the publish
request. This signals that the request has been acknowledged and
possibly acted on. Otherwise, the ignored operations will be resubmitted
for each change.

Modified:
    sling/trunk/tooling/ide/eclipse-core/src/org/apache/sling/ide/eclipse/core/internal/SlingLaunchpadBehaviour.java

Modified: sling/trunk/tooling/ide/eclipse-core/src/org/apache/sling/ide/eclipse/core/internal/SlingLaunchpadBehaviour.java
URL: http://svn.apache.org/viewvc/sling/trunk/tooling/ide/eclipse-core/src/org/apache/sling/ide/eclipse/core/internal/SlingLaunchpadBehaviour.java?rev=1597536&r1=1597535&r2=1597536&view=diff
==============================================================================
--- sling/trunk/tooling/ide/eclipse-core/src/org/apache/sling/ide/eclipse/core/internal/SlingLaunchpadBehaviour.java (original)
+++ sling/trunk/tooling/ide/eclipse-core/src/org/apache/sling/ide/eclipse/core/internal/SlingLaunchpadBehaviour.java Mon May 26 09:20:32 2014
@@ -151,11 +151,13 @@ public class SlingLaunchpadBehaviour ext
         if ((kind == IServer.PUBLISH_AUTO || kind == IServer.PUBLISH_INCREMENTAL)
                 && deltaKind == ServerBehaviourDelegate.NO_CHANGE) {
             logger.trace("Ignoring request to publish the module when no resources have changed; most likely another module has changed");
+            setModulePublishState(module, IServer.PUBLISH_STATE_NONE);
             return;
         }
         
         if (kind == IServer.PUBLISH_FULL && deltaKind == ServerBehaviourDelegate.REMOVED) {
             logger.trace("Ignoring request to unpublish all of the module resources");
+            setModulePublishState(module, IServer.PUBLISH_STATE_NONE);
             return;
         }