Package com.google.devtools.moe.client.parser

Examples of com.google.devtools.moe.client.parser.Term


  }

  private RepositoryExpression e(String creatorIdentifier,
                               ImmutableMap<String, String> creatorOptions) {
    return new RepositoryExpression(
        new Term(creatorIdentifier, creatorOptions));
  }
View Full Code Here


    Utils.filterFiles(archiveLocation, nonIgnoredFilePred);

    return new Codebase(
        archiveLocation,
        projectSpace,
        new RepositoryExpression(new Term(headClone.getRepositoryName(), options)));
  }
View Full Code Here

  public void testCheckProjectSpace() throws Exception {
    Codebase c = new Codebase(
            new File("/foo"),
            "internal",
            new RepositoryExpression(new Term("foo", ImmutableMap.<String, String>of())));
    c.checkProjectSpace("internal");
    try {
      c = new Codebase(
              new File("/foo"),
              "internal",
              new RepositoryExpression(new Term("foo", ImmutableMap.<String, String>of())));
      c.checkProjectSpace("public");
      fail();
    } catch (MoeProblem p) {}
  }
View Full Code Here

    final Predicate<CharSequence> nonIgnoredFilePred =
        Utils.nonMatchingPredicateFromRes(config.getIgnoreFileRes());
    Utils.filterFiles(exportPath, nonIgnoredFilePred);

    return new Codebase(
        exportPath, config.getProjectSpace(), new RepositoryExpression(new Term(name, options)));
  }
View Full Code Here

    // Create the codebase instance.
    File codebasePath = getCodebasePath(new File(source));
    String projectSpace = options.containsKey(PROJECT_SPACE_OPTION)
                          ? options.get(PROJECT_SPACE_OPTION)
                          : "public";
    RepositoryExpression expression = new RepositoryExpression(new Term("file", options));
    return new Codebase(codebasePath, projectSpace, expression);
  }
View Full Code Here


    return new Codebase(
        new File("/dummy/codebase/" + name + "/" + revId),
        projectSpace,
        new RepositoryExpression(new Term(name, ImmutableMap.<String, String>of())));
  }
View Full Code Here

    this.modifiedCodebase = modifiedCodebase;
    this.destinationCodebase = destinationCodebase;

    File mergedDir = AppContext.RUN.fileSystem.getTemporaryDirectory("merged_codebase_");
    RepositoryExpression mergedExpression = new RepositoryExpression(
        new Term("merged", ImmutableMap.<String, String>of()));
    this.mergedCodebase = new Codebase(mergedDir, "merged", mergedExpression);

    mergedFiles = Sets.newHashSet();
    failedToMergeFiles = Sets.newHashSet();
  }
View Full Code Here

TOP

Related Classes of com.google.devtools.moe.client.parser.Term

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.