Examples of IModule


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

  }

  @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

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

          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

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

            || 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

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

      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

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

  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

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

  }

  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

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

  }
 
  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

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

   *      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

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

      if(GeronimoUtils.isEarModule(module)) {
        IEnterpriseApplication application = (IEnterpriseApplication) module.loadAdapter(IEnterpriseApplication.class, null);
        if( application != null ){
          IModule[] children = application.getModules();
           for (int i = 0; i < children.length; i++) {
               IModule child = children[i];
              IPath childPath = output.append(child.getName() + getModuleExtension(child));
              IModuleResource[] childResources = getModuleResources(child);
              PublishUtil.publishSmart(childResources, childPath, new NullProgressMonitor());
              if(GeronimoUtils.isWebModule(child)) {
                IWebModule webModule = (IWebModule) module.loadAdapter(IWebModule.class, null);
                IModule[] libs = webModule.getModules();
                IPath webLibPath = childPath.append("WEB-INF").append("lib");
                for(int j = 0; j < libs.length; j++) {
                  IModule lib = libs[j];
                  IModuleResource[] libResources = getModuleResources(lib);
                  PublishUtil.publishSmart(libResources, webLibPath.append(lib.getName() + getModuleExtension(lib)), new NullProgressMonitor());
                }
              }
           }
        }
      }
View Full Code Here

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

        return Status.CANCEL_STATUS;
     
      sharedLibLocation = server.getRuntime().getLocation().append(sharedLibPath);
     
      for(int i = 0; i < modules.length; i++) {
        IModule module = modules[i];
        IProject project = module.getProject();
       
        File dummyJarFile = sharedLibLocation.append(project.getName() + ".eclipse.jar").toFile();
        // delete the dummy jar if module no longer associated with server
        if (!ServerUtil.containsModule(server, module, monitor) && dummyJarFile.exists()) {
          deleteList.add(dummyJarFile);
        } else {
          HashSet entries = new HashSet();
          J2EEFlexProjDeployable j2eeModule = (J2EEFlexProjDeployable) module.loadAdapter(J2EEFlexProjDeployable.class, null);
          if(GeronimoUtils.isEarModule(module)) {
            IModule[] childModules = j2eeModule.getChildModules();
            for(int j = 0; j < modules.length; j++) {
              entries.addAll(processModule(childModules[i]));
            }
          } else {
            entries.addAll(processModule(module));
          }

          // regen the jar only if required
          if (regenerate(dummyJarFile, entries)) {
            TEMP_LOCATION.toFile().mkdirs();
            File temp = TEMP_LOCATION.append(project.getName() + ".eclipse.jar").toFile();
            Trace.trace(Trace.INFO, "Updating external sharedlib entries for " + module.getName());
            if(temp.exists())
              delete(temp);
            Manifest manifest = new Manifest();
            Attributes attributes = manifest.getMainAttributes();
            attributes.put(Attributes.Name.MANIFEST_VERSION, "1.0");
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.