Package org.eclipse.wst.server.core

Examples of org.eclipse.wst.server.core.IServer.publish()


      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;
    }
View Full Code Here


                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);
                    }
                }
            }
        }
    }
View Full Code Here

                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 {
View Full Code Here

        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() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.