Package org.dru.clay.respository

Examples of org.dru.clay.respository.Repository


    // URI base = new URI("file:///home/erikb/dev/source/ivy-cache/");
    // Transport transport = new FileSystemTransport(FileSystemOptions.CreateDirectories);

    URI base = new URI("http://ivy.dev.midasplayer.com/repository/");
    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");
View Full Code Here


    }

    URI location = new URI(ivyConfig.getLocation());
    Transport transport = getTransport(location.getScheme());

    Repository repository = new IvyRepository(location, ivyConfig.getIvyPattern(), ivyConfig.getArtifactPattern());
    CacheIvyRepository cacheIvyRepository = new CacheIvyRepository(new File(ivyConfig.getCacheDir()), repository, transport);
    final DependencyResolver resolver = new DependencyResolverImpl(cacheIvyRepository, transport);
   
    final Map<String, Collection<Dependency>> dependencyMap =  (Map<String, Collection<Dependency>> )((ScriptableObject) thisObj).getAssociatedValue(DEPENDENCY_KEY);
   
View Full Code Here

    //URI base = new URI("file:///home/erikb/dev/source/ivy-cache/");
    //Transport transport = new FileSystemTransport(FileSystemOptions.CreateDirectories);
   
    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));
    System.out.println(result);   
  }
View Full Code Here

TOP

Related Classes of org.dru.clay.respository.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.