Package org.dru.clay.respository.artifact

Examples of org.dru.clay.respository.artifact.Group


    filterDependencies(Collections.singleton(configuration), dependencies, resolveQueue);

    while (resolveQueue.peek() != null) {
      final ConfigurationContext context = resolveQueue.poll();
      final Dependency dependency = context.getDependency();
      final Group group = dependency.getGroup();
      final UnresolvedArtifact unresolved = dependency.getArtifact();

      final Artifact resolveArtifact = repository.lookup(transport, group, unresolved);

      logger.info("Resolved %s -> %s", unresolved, resolveArtifact);
View Full Code Here


    if (!Xml.getChildren(node, "conf").isEmpty()) {
      logger.error("Dependency %s uses nested conf elements which isn't supported : using '*'", artifact);
      conf = "*";
    }
    final ConfigurationMapping mapping = configurationParser.parse(conf);
    return new Dependency(new Group(group), artifact, mapping, transitive);
  }
View Full Code Here

  public void put(Transport transport, Module module, Artifact artifact, File source) {
    throw new UnsupportedOperationException("Not implemented");
  }

  protected URI calculateIvyURI(Module module) throws URISyntaxException {
    final Group group = module.getGroup();
    final Artifact artifact = module.getArtifact();
    final String path = ivyPattern.replaceAll(P_ORG, group.get()).replaceAll(P_MODULE, artifact.getName())
        .replaceAll(P_VERSION, artifact.getVersion().plain());
    return new URI(base + path);
  }
View Full Code Here

    final String path = searchPattern.replaceAll(P_ORG, group.get()).replaceAll(P_MODULE, artifact.getName());
    return new URI(base + path);
  }

  protected URI calculateArtifactURI(Module module, Artifact artifact) throws URISyntaxException {
    final Group group = module.getGroup();
    final String path = artifactPattern.replaceAll(P_ORG, group.get()).replaceAll(P_MODULE, module.getArtifact().getName())
        .replaceAll(P_VERSION, module.getArtifact().getVersion().plain()).replaceAll(P_ARTIFACT, artifact.asString())
        .replaceAll(P_EXT, artifact.getExtension());
    return new URI(base + path);
  }
View Full Code Here

    Transport transport = new HttpTransport();
    Repository repository = new IvyRepository(base, ivyPattern, artifactPattern);

    CacheIvyRepository cacheIvyRepository = new CacheIvyRepository(new File("repo"), repository, transport);

    Group group = new Group("king");

    Dependency dependency = new Dependency(group, new UnresolvedArtifact("plataforma", new VersionPattern("0.193.5")),
        new ConfigurationMapping(MappingRules.simple("runtime")), true);

    final DependencyResolver resolver = new DependencyResolverImpl(cacheIvyRepository, transport);
View Full Code Here

      final Collection<Dependency> dependencies = new ArrayList<Dependency>();
     
      for (IvyDependency dependency : entry.getValue()) {
        final ConfigurationMapping mapping = mappingParser.parse(dependency.getConf());
        final UnresolvedArtifact artifact = new UnresolvedArtifact(dependency.getName(), new VersionPattern(dependency.getRev()));
        dependencies.add(new Dependency(new Group(dependency.getOrg()), artifact, mapping, true));
      }
     
      dependencyMap.put(configuration, dependencies);
    }
   
View Full Code Here

   
    URI base = new URI("http://ivy.dev.midasplayer.com/repository/");
    Transport transport = new HttpTransport();
    Repository repository = new IvyRepository(base, ivyPattern, artifactPattern);

    Group group = new Group("king");
    Artifact artifact = repository.lookup(transport, group, new UnresolvedArtifact("plataforma", new VersionPattern("0.193.5")));
    Assert.assertNotNull(artifact);

    System.out.println("Artifact: " + artifact);
View Full Code Here

TOP

Related Classes of org.dru.clay.respository.artifact.Group

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.