Package aQute.bnd.service

Examples of aQute.bnd.service.RepositoryPlugin$DownloadListener


  protected void tearDown() throws Exception {
    httpd.stop();
  }

  public void testVersionsBadBsn() throws Exception {
    RepositoryPlugin repo = createRepo();
    SortedSet<Version> versions = repo.versions("foo.bar.foobar");

    assertNull(versions);
  }
View Full Code Here


    assertNull(versions);
  }

  public void testVersionsGAVStyle() throws Exception {
    RepositoryPlugin repo = createRepo();
    SortedSet<Version> versions = repo.versions("javax.servlet:servlet-api");

    assertNotNull(versions);
    assertTrue(versions.size() == 2);
    assertEquals("2.4.0", versions.first().toString());
    assertEquals("2.5.0", versions.last().toString());
View Full Code Here

  public void repo(String args[], int i) throws Exception {
    String bsn = null;
    String version = null;
    List<RepositoryPlugin> repos = new ArrayList<RepositoryPlugin>();
    RepositoryPlugin writable = null;

    Project p = Workspace.getProject(getBase());
    if (p != null) {
      repos.addAll(p.getWorkspace().getRepositories());
      for (Iterator<RepositoryPlugin> rp = repos.iterator(); rp.hasNext();) {
        RepositoryPlugin rpp = rp.next();
        if (rpp.canWrite()) {
          writable = rpp;
          break;
        }
      }
    }
View Full Code Here

TOP

Related Classes of aQute.bnd.service.RepositoryPlugin$DownloadListener

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.