Package org.eclipse.jst.server.core

Examples of org.eclipse.jst.server.core.IWebModule


      PublishHelper helper = new PublishHelper(tempFile);

      ArrayList<IModuleResource> resources = new ArrayList<IModuleResource>(Arrays.asList(server
          .getResources(modules)));

      IWebModule webModule = getWebModule(modules);

      if (webModule != null) {

        IModule[] children = webModule.getModules();

        if (children != null) {
          for (IModule child : children) {
            String childUri = null;
            if (webModule != null) {
              childUri = webModule.getURI(child);
            }
            IJ2EEModule childModule = (IJ2EEModule) child.loadAdapter(IJ2EEModule.class, monitor);
            boolean isBinary = false;
            if (childModule != null) {
              isBinary = childModule.isBinary();
View Full Code Here


    protected abstract void performDeployment(CloudFoundryApplicationModule appModule, IProgressMonitor monitor)
        throws CoreException;
  }

  protected boolean hasChildModules(IModule[] modules) {
    IWebModule webModule = CloudUtil.getWebModule(modules);
    return webModule != null && webModule.getModules() != null && webModule.getModules().length > 0;
  }
View Full Code Here

    // }

    IModuleType moduleType = module[module.length - 1].getModuleType();

    if (moduleType != null && CloudFoundryConstants.ID_WEB_MODULE.equals(moduleType.getId())) {
      IWebModule webModule = (IWebModule) module[module.length - 1].loadAdapter(IWebModule.class, null);
      if (webModule != null)
        return webModule.getModules();
    }
   
    return new IModule[0];
  }
View Full Code Here

            IModule[] modules = enterpriseApplication.getModules();
            if (modules != null)
              return modules;
          }
        } else if (IModuleConstants.JST_WEB_MODULE.equals(moduleType.getId())) {
          IWebModule webModule = (IWebModule) module[0].loadAdapter(IWebModule.class, null);
          if (webModule != null) {
            IModule[] modules = webModule.getModules();
            if (modules != null)
              return modules;
          }
        }
      }
View Full Code Here

               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

    if (appName!=null && !"".equals(appName)) {
      IModule[] modules = ServerUtil.getModules("jst.web");
      for (IModule module : modules) {
        Object obj = module.loadAdapter(IWebModule.class, new NullProgressMonitor());
        if (obj instanceof IWebModule) {
          IWebModule webModule = (IWebModule) obj;
          if (appName.equals(webModule.getContextRoot())) {
            projects.add(module.getProject());
          }
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.eclipse.jst.server.core.IWebModule

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.