Package com.tuenti.supernanny.repo.artifacts

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


    Set<Artifact> chosenArtifacts = new HashSet<Artifact>();
    List<Artifact> unresolved = new ArrayList<Artifact>();
    // process the initial list of requirements first getting the most
    // recent artifact for all the requirements
    for (Requirement req : initialRequirements) {
      Artifact artifact = getArtifactFor(req);
      chosenArtifacts.add(artifact);
      unresolved.add(artifact);
    }

    // resolve all dependencies of the the artifacts chosen until now
    while (unresolved.size() > 0) {
      Artifact artifact = unresolved.remove(0);
      // resolve the requirements for each
      List<Artifact> newArtifacts = resolveReq(artifact, chosenArtifacts);
      unresolved.addAll(newArtifacts);
      chosenArtifacts.addAll(newArtifacts);
    }
View Full Code Here


            matched = true;
          }
        }
      }
      if (!matched) {
        Artifact newArtifact = getArtifactFor(requirement);
        newArtifacts.add(newArtifact);
      }
    }
    return newArtifacts;
  }
View Full Code Here

          FetchTask fetchTask = future.get();
          String prefix = "Ok";
          if (fetchTask.hadToFetch) {
            prefix = "Get";
          }
          Artifact artifact = fetchTask.artifact;
          rows.add(new String[] { prefix, artifact.getName(),
              artifact.getVersion().getVersionString(),
              artifact.getOrigin().getRepoType().toString(), artifact.getOriginUrl(), });
        } catch (Exception e) {
          e.printStackTrace();
        }
      }
      util.printColumns(rows, "  ", "  ", 1, true);
View Full Code Here

        throw new ResolutionException(e);
      }
    }
    List<Artifact> artifacts = new ArrayList<Artifact>();
    // return artifact with wildcard version so it matches everything
    artifacts.add(new Artifact(req.getName(), new Version("*"), this, reqs));
    return artifacts;
  }
View Full Code Here

TOP

Related Classes of com.tuenti.supernanny.repo.artifacts.Artifact

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.