Package org.objectstyle.woenvironment.frameworks

Examples of org.objectstyle.woenvironment.frameworks.ExternalFrameworkModel


  }

  @SuppressWarnings("unchecked")
  public ExternalFrameworkModel getFrameworkModel() {
    if (this.frameworkModel == null) {
      this.frameworkModel = new ExternalFrameworkModel(getProject().getProperties());
    }
    return this.frameworkModel;
  }
View Full Code Here


    this.root = root;
  }

  protected Root<IFramework> getFrameworkRoot() {
    if (this.root == null) {
      ExternalFrameworkModel currentFrameworkModel = getFrameworkModel();
      try {
        this.root = currentFrameworkModel.getRootForFolder(getDir());
      }
      catch (IOException e) {
        throw new BuildException("There was no matching framework root found for the folder '" + getDir() + "'.  The known framework roots are " + currentFrameworkModel.getRoots() + ".", e);
      }
    }
    return this.root;
  }
View Full Code Here

   * Sets root directory of this FileSet based on a symbolic name, that can be
   * "User", "Local", "System". Throws BuildException if an
   * invalid root is specified.
   */
  public void setRoot(String rootName) throws BuildException {
    ExternalFrameworkModel currentFrameworkModel = getFrameworkModel();
    this.root = currentFrameworkModel.getRootWithShortName(rootName);
    if (this.root == null) {
      throw new BuildException("There is no root named '" + rootName + "' in " + currentFrameworkModel.getRoots() + ".");
    }
    File rootFolder = ((ExternalFolderRoot) this.root).getFrameworksFolder();
    setDir(rootFolder);
  }
View Full Code Here

TOP

Related Classes of org.objectstyle.woenvironment.frameworks.ExternalFrameworkModel

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.