Package aQute.service.library.Library

Examples of aQute.service.library.Library.Program


      if (f.isFile() && f.length() == r.size)
        sb.format("Cached %s\n", f);
      else
        sb.format("Not downloaded\n");

      Program p = getProgram(bsn, false);
      if (p != null) {

        Runnable update = getUpdateAction(p, r);
        if (update != null) {
          sb.format("%c This version can be updated to %s\n", DOWN_ARROW, update);
View Full Code Here


    if (parts.length == 3) {
      bsn = parts[0] + "__" + parts[1];
      classifier = parts[2];
    }

    Program program = getProgram(bsn, false);
    if (program != null) {
      List<RevisionRef> refs = new ArrayList<Library.RevisionRef>();
      for (RevisionRef r : program.revisions) {
        if (eq(classifier, r.classifier))
          refs.add(r);
View Full Code Here

   *
   * @param bsn
   * @throws Exception
   */
  void update(String bsn) throws Exception {
    Program program = getProgram(bsn, false);
    Runnable updateAction = getUpdateAction(program, bsn);
    if (updateAction == null)
      return;

    reporter.trace("update bsn %s", updateAction);
View Full Code Here

   * @param bsn
   * @return
   * @throws Exception
   */
  private Program getProgram(final String bsn, boolean force) throws Exception {
    Program p = cache.getProgram(bsn);
    if (p == null || force) {
      p = library.getProgram(Library.OSGI_GROUP, bsn);
      if (p != null)
        cache.putProgram(bsn, p);
    }
View Full Code Here

TOP

Related Classes of aQute.service.library.Library.Program

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.