Examples of WOVariables


Examples of org.objectstyle.woenvironment.env.WOVariables

  @Override
  protected synchronized List<Root<IFramework>> createRoots() {
    List<Root<IFramework>> roots = new LinkedList<Root<IFramework>>();
    //roots.add(new EclipseProjectRoot(Root.PROJECT_ROOT, "Project Frameworks", ResourcesPlugin.getWorkspace().getRoot()));

    WOVariables variables = this.environment.getWOVariables();
    String projectLocalFrameworksFolder = variables.getProperty("projectFrameworkFolder");
    if (projectLocalFrameworksFolder != null) {
      File projectLocalRoot = new File(projectLocalFrameworksFolder);
      roots.add(new ExternalFolderRoot(Root.PROJECT_LOCAL_ROOT, "Project Local Frameworks", projectLocalRoot, projectLocalRoot));
    }
    else {
      roots.add(new ExternalFolderRoot(Root.PROJECT_LOCAL_ROOT, "Project Local Frameworks", null, null));
    }

    File externalBuildRootPath = fixMissingSeparatorAfterDevice(variables.externalBuildRoot());
    File externalBuildFrameworkPath = fixMissingSeparatorAfterDevice(variables.externalBuildFrameworkPath());
    roots.add(new ExternalFolderRoot(Root.EXTERNAL_ROOT, "External Build Root", externalBuildRootPath, externalBuildFrameworkPath));

    File userRoot = fixMissingSeparatorAfterDevice(variables.userRoot());
    File userFrameworksPath = fixMissingSeparatorAfterDevice(variables.userFrameworkPath());
    roots.add(new ExternalFolderRoot(Root.USER_ROOT, "User Frameworks", userRoot, userFrameworksPath));

    File localRoot = fixMissingSeparatorAfterDevice(variables.localRoot());
    File localFrameworksPath = fixMissingSeparatorAfterDevice(variables.localFrameworkPath());
    roots.add(new ExternalFolderRoot(Root.LOCAL_ROOT, "Local Frameworks", localRoot, localFrameworksPath));

    File systemRoot = fixMissingSeparatorAfterDevice(variables.systemRoot());
    File systemFrameworksPath = fixMissingSeparatorAfterDevice(variables.systemFrameworkPath());
    roots.add(new ExternalFolderRoot(Root.SYSTEM_ROOT, "System Frameworks", systemRoot, systemFrameworksPath));

    File networkRoot = fixMissingSeparatorAfterDevice(variables.networkRoot());
    File networkFrameworksPath = fixMissingSeparatorAfterDevice(variables.networkFrameworkPath());
    roots.add(new ExternalFolderRoot(Root.NETWORK_ROOT, "Network Frameworks", networkRoot, networkFrameworksPath));
    return roots;
  }
View Full Code Here

Examples of org.objectstyle.woenvironment.env.WOVariables

 
  public boolean hasProjectVariables(IProject project) {
    if (project == null || !project.isAccessible()) {
      return false;
    }
    WOVariables wovars = getWOVariables(project, null);
    String wolipsPrefs = Preferences.getString(Preferences.PREF_WOLIPS_PROPERTIES_FILE);
    return !wolipsPrefs.equals(wovars.getWOLipsPropertiesFile().getPath());
  }
View Full Code Here

Examples of org.objectstyle.woenvironment.env.WOVariables

      if (buildProperties != null) {
        defaultProperties.putAll(buildProperties);
      }
    }

    WOVariables variables = new WOEnvironment(defaultProperties).getWOVariables();
    return variables;
  }
View Full Code Here

Examples of org.objectstyle.woenvironment.env.WOVariables

   * Returns a String that consists of paths of all framework's jar's needed
   * by the application. File separator used is platform dependent and may
   * need to be changed when creating files for multiple platforms.
   */
  protected String buildFrameworkPaths() {
    WOVariables variables = getApplicatonTask().getWOEnvironment().getWOVariables();
    String relativeEmbeddedFrameworksDir = getApplicatonTask().relativeEmbeddedFrameworksDir();
    String result = FrameworkSet.jarsPathForFrameworkSets(task.getProject(), relativeEmbeddedFrameworksDir, getApplicatonTask().getFrameworkSets(), variables);
    return result;
  }
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.