240241242243244245246247248249250
if (!Arrays.asList(wc.getModules()).contains(modules[0])) { wc.modifyModules(modules, new IModule[0], monitor); server = wc.save(true, monitor); } server.publish(IServer.PUBLISH_INCREMENTAL, monitor); restartServer(server, monitor); return server; }
211212213214215216217218219220221
if (aServer!=null) { int autoPublishSetting = aServer.getAttribute(PROP_AUTO_PUBLISH_SETTING, AUTO_PUBLISH_RESOURCE); int autoPublishTime = aServer.getAttribute(PROP_AUTO_PUBLISH_TIME, 15); if (autoPublishSetting==AUTO_PUBLISH_RESOURCE) { //TODO: ignoring the autoPublishTime - SLING-3587 aServer.publish(IServer.PUBLISH_INCREMENTAL, monitorOrNull); } } } } }
213214215216217218219220221222223
modules.add(new IModule[] { module }); } } if (modules.size() > 0) { server.publish(IServer.PUBLISH_CLEAN, modules, null, null); } } protected void configureBundleProject(IProject aBundleProject, List<IProject> projects, IProgressMonitor monitor) throws CoreException {
105106107108109110111112113114115
int autoPublishSetting = server.getAutoPublishSetting(); shouldPublish = shouldPublish && (autoPublishSetting == Server.AUTO_PUBLISH_RESOURCE || (autoPublishSetting == Server.AUTO_PUBLISH_BUILD && buildOccurred)); } if (shouldPublish && iserver.getServerState() == IServer.STATE_STARTED) { iserver.publish(IServer.PUBLISH_INCREMENTAL, new NullProgressMonitor()); } } } private boolean isPublishOverlaysEnabled() {