Package org.objectstyle.woenvironment.pb

Examples of org.objectstyle.woenvironment.pb.PBXProject


   */
  @Override
  public void execute() throws BuildException {
    validateAttributes();

    PBXProject proj;
    if (myXcodeProj) {
      proj = new XcodeProjProject();
    } else {
      proj = new XcodeProject();
    }
    addToProject(proj);

    if (getProjectFile().exists()) {
      if (!getProjectFile().isDirectory())
        throw new BuildException("Specified Xcode project package is not a directory.");
    } else
      getProjectFile().mkdir();
    File pbxprojFile = new File(getProjectFile(), "project.pbxproj");
    if (!pbxprojFile.exists()) {
      try {
        pbxprojFile.createNewFile();
      } catch (IOException x) {
        throw new BuildException("Failed to create project.pbxproj Xcode project package file: " + x);
      }
    }

    try {
      proj.save(pbxprojFile);
    } catch (Exception x) {
      throw new BuildException("Failed to save project.pbxproj Xcode project package file: " + x);
    }
  }
View Full Code Here


   * @see org.apache.tools.ant.Task#execute()
   */
  public void execute() throws BuildException {
    validateAttributes();

    PBXProject proj = new PBXProject();
    addToProject(proj);

    if (getProjectFile().exists()) {
      if (!getProjectFile().isDirectory())
        throw new BuildException("Specified PBX project package is not a directory.");
    } else
      getProjectFile().mkdir();
    File pbxprojFile = new File(getProjectFile(), "project.pbxproj");
    if (!pbxprojFile.exists()) {
      try {
        pbxprojFile.createNewFile();
      } catch (IOException x) {
        throw new BuildException("Failed to create project.pbxproj PBX project package file: " + x);
      }
    }


    try {
      proj.save(pbxprojFile);
    } catch (Exception x) {
      throw new BuildException("Failed to save project.pbxproj Xcode project package file: " + x);
    }
  }
View Full Code Here

TOP

Related Classes of org.objectstyle.woenvironment.pb.PBXProject

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.