Package org.eclipse.wst.server.core.util

Examples of org.eclipse.wst.server.core.util.ModuleFolder


      IModuleFolder of = (IModuleFolder) or;
      IPath p = of.getModuleRelativePath();
      if (p.isAbsolute()) {
        p = p.makeRelative();
      }
      ModuleFolder nf = new ModuleFolder(null, of.getName(), p);
      List<IModuleResource> c = new ArrayList<IModuleResource>();
      for (IModuleResource mc : of.members()) {
        c.add(processModuleResource(mc));
      }
      nf.setMembers(c.toArray(new IModuleResource[0]));
      return nf;
    }
    return or;
  }
View Full Code Here


      }

      // Add the dependencies in a /lib
      if (resolver.hasRuntimeDependencies()) {
        // check if at root level, there already exists a /lib folder
        ModuleFolder libFolder = createLibFolder(members);
        List<String> dependencies = resolver
            .getRuntimeDependencyLocations();
        List<IModuleResource> libMembers = new ArrayList<IModuleResource>();
        for (String path : dependencies) {
          addModuleResources(path, libMembers,
              JavaStartCommand.DEFAULT_LIB_PATH);
        }
        if (!libMembers.isEmpty()) {
          libFolder.setMembers(libMembers
              .toArray(new IModuleResource[0]));
        }
      }
    }
    return members.toArray(new IModuleResource[0]);
View Full Code Here

      }
    }

    // Otherwise create one with a root level module relative path (i.e. an
    // empty path)
    org.eclipse.wst.server.core.util.ModuleFolder folder = new ModuleFolder(
        null, JavaStartCommand.DEFAULT_LIB, Path.EMPTY);
    moduleResources.add(folder);
    return folder;
  }
View Full Code Here

                    IModuleResource moduleFile = null;

                    if (resource.getType() == IResource.FILE) {
                        moduleFile = new ModuleFile((IFile) resource, resource.getName(), modulePath);
                    } else if (resource.getType() == IResource.FOLDER) {
                        moduleFile = new ModuleFolder((IFolder) resource, resource.getName(), modulePath);
                    }

                    if (moduleFile != null)
                        resources.add(moduleFile);
View Full Code Here

TOP

Related Classes of org.eclipse.wst.server.core.util.ModuleFolder

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.