You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by st...@apache.org on 2013/09/18 17:38:30 UTC

svn commit: r1524462 - /sling/branches/tooling-ide-vlt/tooling/ide/eclipse-core/src/org/apache/sling/ide/eclipse/core/internal/SlingLaunchpadBehaviour.java

Author: stefanegli
Date: Wed Sep 18 15:38:29 2013
New Revision: 1524462

URL: http://svn.apache.org/r1524462
Log:
SLING-3068 : do not publish content packages if there was no change, as is the case when a server's set of added modules gets changed (then a PUBLISH_INCREMENTAL with NO_CHANGE gets invoked for already-synched/unchanged modules)

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

Modified: sling/branches/tooling-ide-vlt/tooling/ide/eclipse-core/src/org/apache/sling/ide/eclipse/core/internal/SlingLaunchpadBehaviour.java
URL: http://svn.apache.org/viewvc/sling/branches/tooling-ide-vlt/tooling/ide/eclipse-core/src/org/apache/sling/ide/eclipse/core/internal/SlingLaunchpadBehaviour.java?rev=1524462&r1=1524461&r2=1524462&view=diff
==============================================================================
--- sling/branches/tooling-ide-vlt/tooling/ide/eclipse-core/src/org/apache/sling/ide/eclipse/core/internal/SlingLaunchpadBehaviour.java (original)
+++ sling/branches/tooling-ide-vlt/tooling/ide/eclipse-core/src/org/apache/sling/ide/eclipse/core/internal/SlingLaunchpadBehaviour.java Wed Sep 18 15:38:29 2013
@@ -185,7 +185,7 @@ public class SlingLaunchpadBehaviour ext
             		publishBundleModule(module, monitor);
             	}
             } else if (ProjectHelper.isContentProject(module[0].getProject())) {
-                if (kind == IServer.PUBLISH_AUTO && deltaKind == ServerBehaviourDelegate.NO_CHANGE) {
+                if ((kind == IServer.PUBLISH_AUTO || kind == IServer.PUBLISH_INCREMENTAL) && deltaKind == ServerBehaviourDelegate.NO_CHANGE) {
                     System.out
                             .println("Ignoring request to publish the module when no resources have changed; most likely another module has changed");
                     return;