Package org.dru.clay.respository.artifact

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


    if (rev == null) {
      throw new IllegalArgumentException("Dependency " + name + " is missing attribute rev");
    }

    UnresolvedArtifact artifact = new UnresolvedArtifact(name, new VersionPattern(rev));

    if (!Xml.getChildren(node, "conf").isEmpty()) {
      logger.error("Dependency %s uses nested conf elements which isn't supported : using '*'", artifact);
      conf = "*";
    }
 
View Full Code Here


    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);
    resolver.resolve(new File("libs"), "runtime", Collections.singletonList(dependency));
  }
View Full Code Here

      final String configuration = entry.getKey();
      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);

    ResolveResult result = repository.resolve(transport, new Module(group, artifact));
View Full Code Here

TOP

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

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.