Package org.objectstyle.wolips.eomodeler.core.model

Examples of org.objectstyle.wolips.eomodeler.core.model.ManifestSearchFolder


      contentPath = contentPath.replaceAll("\\$MODULE_DIR\\$", ideaProjectPath);
      File contentFolder = new File(contentPath).getCanonicalFile();
      // System.out.println("IDEAProjectEOModelGroupFactory.processIdeaModuleFile:   content folder = " + contentFolder);
      File resourcesFolder = new File(contentFolder, "Resources");
      if (resourcesFolder.exists()) {
        searchFolders.add(new ManifestSearchFolder(resourcesFolder));
      }
      else {
        // ... just only support project/Resources
        // searchFolders.add(new ManifestSearchFolder(contentFolder));
      }
    }

    XPathExpression ideaModulesExpression = XPathFactory.newInstance().newXPath().compile("//module/component/orderEntry");
    NodeList ideaModuleNodes = (NodeList) ideaModulesExpression.evaluate(ideaModuleDocument, XPathConstants.NODESET);
    for (int ideaModuleNum = 0; ideaModuleNum < ideaModuleNodes.getLength(); ideaModuleNum++) {
      Element ideaModuleElement = (Element) ideaModuleNodes.item(ideaModuleNum);
      String ideaModuleType = ideaModuleElement.getAttribute("type");
      if ("module".equals(ideaModuleType)) {
        String ideaModuleName = ideaModuleElement.getAttribute("module-name");
        File dependentModuleFile = new File(ideaModuleFile.getParentFile(), ideaModuleName + ".iml").getCanonicalFile();
        processIdeaModuleFile(dependentModuleFile, searchFolders, ideaLibraries, visitedModulePaths);
      } else if ("library".equals(ideaModuleType)) {
        String ideaLibraryName = ideaModuleElement.getAttribute("name");
        File ideaLibraryFolder = ideaLibraries.get(ideaLibraryName);
        if (ideaLibraryFolder != null) {
          // System.out.println("IDEAProjectEOModelGroupFactory.processIdeaModuleFile:   library folder = " + ideaLibraryFolder);
          searchFolders.add(new ManifestSearchFolder(ideaLibraryFolder));
        }
      }
    }
  }
View Full Code Here


            buildResourcesFolder = buildFolder;
          }
        }
        // We're cheating some here and forcing project build resources
        // folders to the front of the line ...
        searchFolders.add(0, new ManifestSearchFolder(buildResourcesFolder));
        break;
      }
    }
    visitedProjects.add(eclipseProjectFolder);
View Full Code Here

      }
      if (matchingFrameworkFolder != null && !visitedProjects.contains(matchingFrameworkFolder)) {
        // System.out.println(
        // "EclipseProjectEOModelGroupFactory.processEclipseProject: framework = "
        // + matchingFrameworkFolder);
        ManifestSearchFolder searchFolder = new ManifestSearchFolder(new File(matchingFrameworkFolder, "Resources"));
        if (!searchFolders.contains(searchFolder)) {
          searchFolders.add(searchFolder);
       
        visitedProjects.add(matchingFrameworkFolder);
      }
View Full Code Here

  }

  protected int fillInSearchFolders(File bundleFolder, String searchFolderPath, final List<ManifestSearchFolder> manifestSearchFolders) throws IOException {
    int count = SimpleManifestUtilities.fillInSearchFolders(bundleFolder, searchFolderPath, new SimpleManifestUtilities.SearchFolderDelegate() {
      public void fileMatched(File file) throws IOException {
        manifestSearchFolders.add(new ManifestSearchFolder(file.getAbsoluteFile()));
      }
    });
    return count;
  }
View Full Code Here

  }
 
  protected int fillInSearchFolders(File baseFolder, String searchFolderPath, final List<ManifestSearchFolder> searchFolders) throws IOException {
    int count = SimpleManifestUtilities.fillInSearchFolders(baseFolder, searchFolderPath, new SimpleManifestUtilities.SearchFolderDelegate() {
      public void fileMatched(File file) throws IOException {
        searchFolders.add(new ManifestSearchFolder(file.getAbsoluteFile()));
      }
    });
    return count;
  }
View Full Code Here

TOP

Related Classes of org.objectstyle.wolips.eomodeler.core.model.ManifestSearchFolder

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.