Package org.eclipse.wst.server.core

Examples of org.eclipse.wst.server.core.IModule


        project.createOrUpdateFile(Path.fromPortableString("jcr_root/content/5_file.txt"), new ByteArrayInputStream(
                new byte[0]));
        project.createOrUpdateFile(Path.fromPortableString("jcr_root/content/.content.xml"), new ByteArrayInputStream(
                new byte[0]));

        IModule module = ServerUtil.getModule(contentProject);

        SlingContentModuleFactory moduleFactory = new SlingContentModuleFactory();
        ModuleDelegate moduleDelegate = moduleFactory.getModuleDelegate(module);

        IModuleResource[] members = moduleDelegate.members();
View Full Code Here


                new ByteArrayInputStream(new byte[0]));
        project.createOrUpdateFile(
                Path.fromPortableString("jcr_root/content/testproject/_jcr_content/image/file.dir/_jcr_content/_dam_thumbnails/_dam_thumbnail_319.png"),
                new ByteArrayInputStream(new byte[0]));

        IModule module = ServerUtil.getModule(contentProject);

        SlingContentModuleFactory moduleFactory = new SlingContentModuleFactory();
        ModuleDelegate moduleDelegate = moduleFactory.getModuleDelegate(module);

        IModuleResource[] members = moduleDelegate.members();
View Full Code Here

  }

  @Override
  protected IModule[] createModules(IProject project) {
    LHttpdModule moduleDelegate = null;
    IModule module = null;
    try {
      if(isValidModule(project)) {
        moduleDelegate = new LHttpdModule(project);
        module = createModule(project.getName(), project.getName(), LHttpdConstants.MODULE_TYPE_ID, LHttpdConstants.MODULE_TYPE_VERSION, moduleDelegate.getProject());
        moduleDelegate.initialize(module);
View Full Code Here

          updateCaldecottServices.add(existing);
        }
      }
    }

    IModule caldecottModule = getCaldecottModule(monitor.newChild(1));

    if (!updateCaldecottServices.contains(serviceName)) {
      monitor.setTaskName("Binding service " + serviceName + " to tunnel application"); //$NON-NLS-1$ //$NON-NLS-2$

      updateCaldecottServices.add(serviceName);
View Full Code Here

            || kind== IServer.PUBLISH_INCREMENTAL)) {
      List tasksList = new ArrayList();
      for (Iterator i = modulesList.iterator(); i.hasNext();) {
        IModule[] modules = (IModule[]) i.next();
        for (int j = 0; j < modules.length; j++) {
          IModule module = modules[j];
          IProject project = module.getProject();
          if(Util.hasGwtNature(project)) {
            tasksList.add(new GwtCompileOperation(project));
          }
        }
      }
View Full Code Here

      List tasksList = new ArrayList();
      for (Iterator i = modulesList.iterator(); i.hasNext();) {
        IModule[] modules = (IModule[]) i.next();
        for (int j = 0; j < modules.length; j++) {
          IModule module = modules[j];
          IProject project = module.getProject();
          if (Util.hasGwtNature(project)) {
            tasksList.add(new GwtCompileOperation(project));
          }
        }
      }
View Full Code Here

  private void initializeServer(IProject project) throws Exception {

    IModuleArtifact[] artifacts = ServerPlugin.getModuleArtifacts(project);
    Assert.assertNotNull(artifacts);
    Assert.assertEquals(1, artifacts.length);
    IModule module = artifacts[0].getModule();

    IServer httpServer = getHelper().getHTTPServer();
    Assert.assertNotNull(httpServer);

    httpServer.stop(true);
View Full Code Here

  }

  private void doFullPublish() {
    Iterator<IModule> iterator = publishedModules.keySet().iterator();
    while (iterator.hasNext()) {
      IModule module = (IModule) iterator.next();
      doPublish(module, ADDED);
    }
   
    if (IServer.STATE_STARTED == getServer().getServerState()) {
      setServerPublishState(IServer.PUBLISH_STATE_NONE);
View Full Code Here

  }
 
  private void cleanup() {
    Iterator<IModule> iterator = publishedModules.keySet().iterator();
    while (iterator.hasNext()) {
      IModule module = (IModule) iterator.next();
      String publishedFile = publishedModules.get(module);
      if (publishedFile != null) {
        new File(publishedFile).delete();
      }
    }
View Full Code Here

   *      org.eclipse.wst.server.core.IModule[])
   */
  public IStatus canModifyModules(IModule[] add, IModule[] remove) {
    if (add != null) {
      for (int i = 0; i < add.length; i++) {
        IModule module = add[i];
        if (module.getProject() != null) {
          IStatus status = FacetUtil.verifyFacets(module.getProject(), getServer());
          if (status != null && !status.isOK()) {
            return status;
          }
        }
      }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.server.core.IModule

Copyright © 2018 www.massapicom. 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.