Examples of DVCSArtifact


Examples of com.tuenti.supernanny.repo.artifacts.DVCSArtifact

      List<Requirement> reqs = new LinkedList<Requirement>();
      if (depFile.exists()) {
        reqs = dparser.parseDepsFile(depFile);
      }
      List<Artifact> artifacts = new ArrayList<Artifact>();
      artifacts.add(new DVCSArtifact(req.getName(), ri.reqVersion, this, ri.changeset, subDir, reqs));
      return artifacts;
    } catch (Exception e) {
      throw new ResolutionException(e);
    }
  }
View Full Code Here

Examples of com.tuenti.supernanny.repo.artifacts.DVCSArtifact

    File clone = getRepoFolder();
    String version = artifact.getVersion().toString();
    String subDir = null;
    String changeset = version;
    if (artifact instanceof DVCSArtifact) {
      DVCSArtifact a = (DVCSArtifact) artifact;
      subDir = a.getSubDir();
      changeset = a.getChangeset();
    }
    String resolvedVersion = getStrategy().fetch(uri, artifact.getName(), version, changeset, subDir,
        destination, clone);
   
    util.stampProject(artifact.getName(), destination, artifact.getOriginUrl(),
View Full Code Here

Examples of com.tuenti.supernanny.repo.artifacts.DVCSArtifact

  @Override
  public boolean isUpdated(Artifact a, File dep) throws IOException {
    Requirement existing = util.getProjectInfo(dep);
    String expectedVersion = a.getVersion().toString();
    if (a instanceof DVCSArtifact) {
      DVCSArtifact da = (DVCSArtifact) a;
      expectedVersion = da.getChangeset();
    }

    Requirement dummyReq = new Requirement(a.getName(), ReqType.EQ, expectedVersion, a
        .getOrigin().getRepoType(), a.getOriginUrl());
    return dummyReq.equals(existing);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.