Package com.google.devtools.moe.client.project

Examples of com.google.devtools.moe.client.project.InvalidProject


      final String name, final RepositoryConfig config) throws InvalidProject {
    Preconditions.checkArgument(config.getType() == RepositoryType.hg);

    final String url = config.getUrl();
    if (url == null || url.isEmpty()) {
      throw new InvalidProject("Hg repository config missing \"url\".");
    }

    Supplier<HgClonedRepository> freshSupplier = new Supplier<HgClonedRepository>() {
      @Override public HgClonedRepository get() {
        HgClonedRepository tipClone = new HgClonedRepository(name, config);
View Full Code Here


      throws InvalidProject {
    Preconditions.checkArgument(config.getType() == RepositoryType.git);

    final String url = config.getUrl();
    if (url == null || url.isEmpty()) {
      throw new InvalidProject("Git repository config missing \"url\".");
    }

    Supplier<GitClonedRepository> freshSupplier = new Supplier<GitClonedRepository>() {
      @Override public GitClonedRepository get() {
        GitClonedRepository headClone = new GitClonedRepository(name, config);
View Full Code Here

        if (transConfig.getFromProjectSpace().equals(fromProjectSpace)
            && transConfig.getToProjectSpace().equals(toProjectSpace)) {
          return transConfig;
        }
      }
      throw new InvalidProject("Couldn't find translator!");
    } catch (InvalidProject e) {
      throw new MoeProblem("Error getting translations for migration: " + e);
    }
  }
View Full Code Here

      String name, RepositoryConfig config) throws InvalidProject {
    Preconditions.checkArgument(config.getType() == RepositoryType.svn);

    String url = config.getUrl();
    if (url == null || url.isEmpty()) {
      throw new InvalidProject("Svn repository config missing \"url\".");
    }
    SvnRevisionHistory rh = new SvnRevisionHistory(name, url);

    String projectSpace = config.getProjectSpace();
    if (projectSpace == null) {
View Full Code Here

  public static FileDb makeDbFromDbText(String dbText) throws InvalidProject {
    try {
      DbStorage dbStorage = FILE_DB_GSON.fromJson(dbText, DbStorage.class);
      return new FileDb(dbStorage);
    } catch (JsonParseException e) {
      throw new InvalidProject("Could not parse MOE DB: " + e.getMessage());
    }
  }
View Full Code Here

TOP

Related Classes of com.google.devtools.moe.client.project.InvalidProject

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.