aQute.bnd.osgi.Analyzer.addClasspath()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(5.4k)|赞(0)|评价(0)|浏览(113)

本文整理了Java中aQute.bnd.osgi.Analyzer.addClasspath()方法的一些代码示例,展示了Analyzer.addClasspath()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Analyzer.addClasspath()方法的具体详情如下:
包路径:aQute.bnd.osgi.Analyzer
类名称:Analyzer
方法名:addClasspath

Analyzer.addClasspath介绍

暂无

代码示例

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib

public void setClasspath(Jar[] classpath) {
  for (int i = 0; i < classpath.length; i++) {
    addClasspath(classpath[i]);
  }
}

代码示例来源:origin: biz.aQute/bndlib

public void setClasspath(Jar[] classpath) {
  for (int i = 0; i < classpath.length; i++) {
    addClasspath(classpath[i]);
  }
}

代码示例来源:origin: biz.aQute.bnd/bndlib

public void setClasspath(Jar[] classpath) {
  for (int i = 0; i < classpath.length; i++) {
    addClasspath(classpath[i]);
  }
}

代码示例来源:origin: biz.aQute.bnd/bnd

public void setClasspath(Jar[] classpath) {
  for (int i = 0; i < classpath.length; i++) {
    addClasspath(classpath[i]);
  }
}

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd

public void setClasspath(Jar[] classpath) {
  for (int i = 0; i < classpath.length; i++) {
    addClasspath(classpath[i]);
  }
}

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib

public void addClasspath(Collection<?> jars) throws IOException {
  for (Object jar : jars) {
    if (jar instanceof Jar)
      addClasspath((Jar) jar);
    else if (jar instanceof File)
      addClasspath((File) jar);
    else if (jar instanceof String)
      addClasspath(getFile((String) jar));
    else
      error("Cannot convert to JAR to add to classpath %s. Not a File, Jar, or String", jar);
  }
}

代码示例来源:origin: biz.aQute/bndlib

public void addClasspath(Collection< ? > jars) throws IOException {
  for (Object jar : jars) {
    if (jar instanceof Jar)
      addClasspath((Jar) jar);
    else if (jar instanceof File)
      addClasspath((File) jar);
    else if (jar instanceof String)
      addClasspath(getFile((String) jar));
    else
      error("Cannot convert to JAR to add to classpath %s. Not a File, Jar, or String", jar);
  }
}

代码示例来源:origin: biz.aQute.bnd/bnd

public void addClasspath(Collection< ? > jars) throws IOException {
  for (Object jar : jars) {
    if (jar instanceof Jar)
      addClasspath((Jar) jar);
    else if (jar instanceof File)
      addClasspath((File) jar);
    else if (jar instanceof String)
      addClasspath(getFile((String) jar));
    else
      error("Cannot convert to JAR to add to classpath %s. Not a File, Jar, or String", jar);
  }
}

代码示例来源:origin: biz.aQute.bnd/bndlib

public void addClasspath(Collection< ? > jars) throws IOException {
  for (Object jar : jars) {
    if (jar instanceof Jar)
      addClasspath((Jar) jar);
    else if (jar instanceof File)
      addClasspath((File) jar);
    else if (jar instanceof String)
      addClasspath(getFile((String) jar));
    else
      error("Cannot convert to JAR to add to classpath %s. Not a File, Jar, or String", jar);
  }
}

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd

public void addClasspath(Collection<?> jars) throws IOException {
  for (Object jar : jars) {
    if (jar instanceof Jar)
      addClasspath((Jar) jar);
    else if (jar instanceof File)
      addClasspath((File) jar);
    else if (jar instanceof String)
      addClasspath(getFile((String) jar));
    else
      error("Cannot convert to JAR to add to classpath %s. Not a File, Jar, or String", jar);
  }
}

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib

public void setClasspath(String[] classpath) {
  for (int i = 0; i < classpath.length; i++) {
    Jar jar = getJarFromName(classpath[i], " setting classpath");
    if (jar != null)
      addClasspath(jar);
  }
}

代码示例来源:origin: biz.aQute/bndlib

public void setClasspath(String[] classpath) {
  for (int i = 0; i < classpath.length; i++) {
    Jar jar = getJarFromName(classpath[i], " setting classpath");
    if (jar != null)
      addClasspath(jar);
  }
}

代码示例来源:origin: biz.aQute.bnd/bndlib

public void setClasspath(String[] classpath) {
  for (int i = 0; i < classpath.length; i++) {
    Jar jar = getJarFromName(classpath[i], " setting classpath");
    if (jar != null)
      addClasspath(jar);
  }
}

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd

public void setClasspath(String[] classpath) {
  for (int i = 0; i < classpath.length; i++) {
    Jar jar = getJarFromName(classpath[i], " setting classpath");
    if (jar != null)
      addClasspath(jar);
  }
}

代码示例来源:origin: biz.aQute.bnd/bnd

public void setClasspath(String[] classpath) {
  for (int i = 0; i < classpath.length; i++) {
    Jar jar = getJarFromName(classpath[i], " setting classpath");
    if (jar != null)
      addClasspath(jar);
  }
}

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib

public void addClasspath(File cp) throws IOException {
  if (!cp.exists())
    warning("File on classpath that does not exist: %s", cp);
  Jar jar = new Jar(cp);
  addClasspath(jar);
}

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib

public void setClasspath(File[] classpath) throws IOException {
  List<Jar> list = new ArrayList<>();
  for (int i = 0; i < classpath.length; i++) {
    if (classpath[i].exists()) {
      Jar current = new Jar(classpath[i]);
      list.add(current);
    } else {
      error("Missing file on classpath: %s", IO.absolutePath(classpath[i]));
    }
  }
  for (Iterator<Jar> i = list.iterator(); i.hasNext();) {
    addClasspath(i.next());
  }
}

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd

public void addClasspath(File cp) throws IOException {
  if (!cp.exists())
    warning("File on classpath that does not exist: %s", cp);
  Jar jar = new Jar(cp);
  addClasspath(jar);
}

代码示例来源:origin: biz.aQute/bndlib

public List<Jar> getClasspath() {
  if (firstUse) {
    firstUse = false;
    String cp = getProperty(CLASSPATH);
    if (cp != null)
      for (String s : split(cp)) {
        Jar jar = getJarFromName(s, "getting classpath");
        if (jar != null)
          addClasspath(jar);
        else
          warning("Cannot find entry on -classpath: %s", s);
      }
  }
  return classpath;
}

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib

public List<Jar> getClasspath() {
  if (firstUse) {
    firstUse = false;
    String cp = getProperty(CLASSPATH);
    if (cp != null)
      for (String s : split(cp)) {
        Jar jar = getJarFromName(s, "getting classpath");
        if (jar != null)
          addClasspath(jar);
        else
          warning("Cannot find entry on -classpath: %s", s);
      }
  }
  return classpath;
}

相关文章

Analyzer类方法