Package org.objectstyle.woenvironment.frameworks

Examples of org.objectstyle.woenvironment.frameworks.IFramework$Utility


        Node pathAttribute = conEntry.getAttributes().getNamedItem("path");
        String path = pathAttribute.getTextContent();
        if (path != null && path.startsWith("WOFramework/")) {
          int slashIndex = path.indexOf("/");
          String frameworkName = path.substring(slashIndex + 1);
          IFramework framework = this.frameworkModel.getFrameworkWithName(frameworkName);
          if (framework == null) {
            throw new BuildException("The framework name '" + frameworkName + "' does not exist.");
          }
          else if (framework instanceof ExternalFolderFramework && framework.getRoot() == this.root) {
            ExternalFolderFramework externalFolderFramework = (ExternalFolderFramework) framework;
            frameworks.add(externalFolderFramework);
          }
        }
      }
View Full Code Here


      String[] includedFrameworkFolderNames = getDirectoryScanner(getProject()).getIncludedDirectories();
      for (String includedFrameworkFolderName : includedFrameworkFolderNames) {
        String frameworkName = ExternalFolderFramework.frameworkNameForFolder(new File(includedFrameworkFolderName));
        if (frameworkName != null) {
          if (getDir() == null) {
            IFramework framework = getFrameworkModel().getFrameworkWithName(frameworkName);
            if (framework instanceof ExternalFolderFramework) {
              frameworks.add((ExternalFolderFramework) framework);
            }
          }
          else {
            ExternalFolderFramework framework = new ExternalFolderFramework(getFrameworkRoot(), new File(getDir(), includedFrameworkFolderName));
            frameworks.add(framework);
          }
        }
        else {
          System.out.println("FrameworkSet.getJarsPath: ILLEGAL FRAMEWORK NAMED " + frameworkName);
        }
      }
    }

    for (IFramework framework : frameworks) {
      if (framework.getRoot() == null || framework.getRoot().equals(getFrameworkRoot())) {
        for (FrameworkLibrary frameworkLibrary : framework.getFrameworkLibraries()) {
          File jarFile = frameworkLibrary.getLibraryFile();
          File deployedJarFile = getDeployedFile(jarFile);
          //log(": Framework JAR " + jarFile, Project.MSG_VERBOSE);
          frameworkPath.setLocation(deployedJarFile);
        }
View Full Code Here

      boolean addFramework = true;
      String name = frameworkToAdd.getName();
      for (IClasspathEntry existingEntry : existingEntries) {
        WOFrameworkClasspathContainer frameworkContainer = WOFrameworkClasspathContainer.getFrameworkClasspathContainer(javaProject, existingEntry);
        if (frameworkContainer != null) {
          IFramework framework = frameworkContainer.getFramework();
          if (framework.getName().equals(name)) {
            addFramework = false;
          }
        }
      }
View Full Code Here

      IClasspathEntry removeEntry = null;
      String name = frameworkToRemove.getName();
      for (IClasspathEntry existingEntry : existingEntries) {
        WOFrameworkClasspathContainer frameworkContainer = WOFrameworkClasspathContainer.getFrameworkClasspathContainer(javaProject, existingEntry);
        if (frameworkContainer != null) {
          IFramework framework = frameworkContainer.getFramework();
          if (framework.getName().equals(name)) {
            removeEntry = existingEntry;
          }
        }
      }
View Full Code Here

TOP

Related Classes of org.objectstyle.woenvironment.frameworks.IFramework$Utility

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.