Package com.tuenti.supernanny.repo

Examples of com.tuenti.supernanny.repo.Repository


      }
    } catch (IOException e) {
      e.printStackTrace();
    }

    Repository repo = repoProvider.getRepo(req.getRepoType(), req.getRepo());

    List<Artifact> possibleArtifactsFor = repo.getPossibleArtifactsFor(req);
    if (possibleArtifactsFor != null) {
      Collections.sort(possibleArtifactsFor,  Artifact.getArtifactComparator(true));
      for (Artifact a: possibleArtifactsFor) {
        if (req.matches(a.getName(), a.getVersion())) {
          return a;
View Full Code Here


    }
    if (p != null && p.suffix != null) {
      suffix = p.suffix;
    }
    for (Export export : exports) {
      Repository repository = export.getRepository();
      repository.publish(export, version, prefix, suffix);
    }
  }
View Full Code Here

      System.exit(1);
    }
  }

  private boolean fetchArtifact(Set<String> expectedDirs, Artifact artifact) throws IOException {
    Repository repository = artifact.getOrigin();
    boolean isUpdated = isUpdated(artifact);
    if (!isUpdated) {
      File destination = new File(util.getDepsFolder(), artifact.getName());
      repository.fetch(artifact, destination);
    }

    // store repo temp dir
    if (repository.getTmpDir() != null) {
      expectedDirs.add(repository.getTmpDir());
    }
    return !isUpdated;
  }
View Full Code Here

    LinkedList<Export> exports = new LinkedList<Export>();

    for (String strLine : lineByLine(exportsFile)) {
      String[] depParts = strLine.split("\\s");

      Repository repo = repoProvider
          .getRepo(RepositoryType.valueOf(depParts[1]), depParts[2]);
      String name = depParts[0];
      String folder = ".";
      if (depParts.length == 4) {
        folder = depParts[3];
View Full Code Here

TOP

Related Classes of com.tuenti.supernanny.repo.Repository

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.