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

x33g5p2x  于2022-01-17 转载在 其他  
字(7.2k)|赞(0)|评价(0)|浏览(197)

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

Builder.getClasspath介绍

[英]Answer the string of the resource that it has in the container. It is possible that the resource is a classpath entry. In that case an empty string is returned.
[中]回答容器中资源的字符串。资源可能是类路径条目。在这种情况下,将返回一个空字符串。

代码示例

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

/**
 * Analyze the classpath for a split package
 * 
 * @param pack
 * @param classpath
 * @param source
 */
private String diagnostic(String pack, List<Jar> culprits) {
  // Default is like merge-first, but with a warning
  return "Split package, multiple jars provide the same package:" + pack
    + "\nUse Import/Export Package directive -split-package:=(merge-first|merge-last|error|first) to get rid of this warning\n"
    + "Package found in   " + culprits + "\n" //
    + "Class path         " + getClasspath();
}

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

/**
 * Analyze the classpath for a split package
 * 
 * @param pack
 * @param classpath
 * @param source
 * @return
 */
private String diagnostic(String pack, List<Jar> culprits) {
  // Default is like merge-first, but with a warning
  return "Split package, multiple jars provide the same package:"
      + pack
      + "\nUse Import/Export Package directive -split-package:=(merge-first|merge-last|error|first) to get rid of this warning\n"
      + "Package found in   " + culprits + "\n" //
      + "Class path         " + getClasspath();
}

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

/**
 * Analyze the classpath for a split package
 * 
 * @param pack
 * @param classpath
 * @param source
 */
private String diagnostic(String pack, List<Jar> culprits) {
  // Default is like merge-first, but with a warning
  return "Split package, multiple jars provide the same package:" + pack
    + "\nUse Import/Export Package directive -split-package:=(merge-first|merge-last|error|first) to get rid of this warning\n"
    + "Package found in   " + culprits + "\n" //
    + "Class path         " + getClasspath();
}

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

/**
 * Analyze the classpath for a split package
 *
 * @param pack
 * @param classpath
 * @param source
 * @return
 */
private String diagnostic(String pack, List<Jar> culprits) {
  // Default is like merge-first, but with a warning
  return "Split package, multiple jars provide the same package:"
      + pack
      + "\nUse Import/Export Package directive -split-package:=(merge-first|merge-last|error|first) to get rid of this warning\n"
      + "Package found in   " + culprits + "\n" //
      + "Class path         " + getClasspath();
}

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

/**
 * Analyze the classpath for a split package
 *
 * @param pack
 * @param classpath
 * @param source
 * @return
 */
private String diagnostic(String pack, List<Jar> culprits) {
  // Default is like merge-first, but with a warning
  return "Split package, multiple jars provide the same package:"
      + pack
      + "\nUse Import/Export Package directive -split-package:=(merge-first|merge-last|error|first) to get rid of this warning\n"
      + "Package found in   " + culprits + "\n" //
      + "Class path         " + getClasspath();
}

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

@Override
public List<Jar> getClasspath() {
  init();
  return super.getClasspath();
}

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

@Override
public List<Jar> getClasspath() {
  init();
  return super.getClasspath();
}

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

@Override
public List<Jar> getClasspath() {
  init();
  return super.getClasspath();
}

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

@Override
public List<Jar> getClasspath() {
  init();
  return super.getClasspath();
}

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

@Override
public List<Jar> getClasspath() {
  init();
  return super.getClasspath();
}

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

public Builder getSubBuilder() throws Exception {
  Builder builder = new Builder(this);
  builder.setBase(getBase());
  for (Jar file : getClasspath()) {
    builder.addClasspath(file);
  }
  return builder;
}

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

public Builder getSubBuilder() throws Exception {
  Builder builder = new Builder(this);
  builder.setBase(getBase());
  for (Jar file : getClasspath()) {
    builder.addClasspath(file);
  }
  return builder;
}

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

public Builder getSubBuilder() throws Exception {
  Builder builder = new Builder(this);
  builder.setBase(getBase());
  for (Jar file : getClasspath()) {
    builder.addClasspath(file);
  }
  return builder;
}

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

/**
 * Allow any local initialization by subclasses before we build.
 */
public void init() throws Exception {
  begin();
  doRequireBnd();
  // Check if we have sensible setup
  if (getClasspath().size() == 0
      && (getProperty(EXPORT_PACKAGE) != null || getProperty(EXPORT_PACKAGE) != null || getProperty(PRIVATE_PACKAGE) != null))
    warning("Classpath is empty. Private-Package and Export-Package can only expand from the classpath when there is one");
}

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

/**
 * Allow any local initialization by subclasses before we build.
 */
public void init() throws Exception {
  begin();
  doRequireBnd();
  // Check if we have sensible setup
  if (getClasspath().size() == 0 && (getProperty(EXPORT_PACKAGE) != null || getProperty(EXPORT_PACKAGE) != null
    || getProperty(PRIVATE_PACKAGE) != null || getProperty(PRIVATEPACKAGE) != null))
    warning("Classpath is empty. " + Constants.PRIVATE_PACKAGE + " (-privatepackage) and " + EXPORT_PACKAGE
      + " can only expand from the classpath when there is one");
}

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

public Builder getSubBuilder() throws Exception {
  Builder builder = new Builder(this);
  builder.setBase(getBase());
  builder.use(this);
  for (Jar file : getClasspath()) {
    builder.addClasspath(file);
  }
  return builder;
}

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

public Builder getSubBuilder() throws Exception {
  Builder builder = new Builder(this);
  builder.setBase(getBase());
  builder.use(this);
  for (Jar file : getClasspath()) {
    builder.addClasspath(file);
  }
  return builder;
}

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

/**
 * Allow any local initialization by subclasses before we build.
 */
public void init() throws Exception {
  begin();
  doRequireBnd();
  // Check if we have sensible setup
  if (getClasspath().size() == 0
      && (getProperty(EXPORT_PACKAGE) != null || getProperty(EXPORT_PACKAGE) != null || getProperty(PRIVATE_PACKAGE) != null || getProperty(PRIVATEPACKAGE) != null))
    warning("Classpath is empty. " + Constants.PRIVATE_PACKAGE + " (-privatepackage) and " + EXPORT_PACKAGE + " can only expand from the classpath when there is one");
}

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

/**
 * Allow any local initialization by subclasses before we build.
 */
public void init() throws Exception {
  begin();
  doRequireBnd();
  // Check if we have sensible setup
  if (getClasspath().size() == 0 && (getProperty(EXPORT_PACKAGE) != null || getProperty(EXPORT_PACKAGE) != null
    || getProperty(PRIVATE_PACKAGE) != null || getProperty(PRIVATEPACKAGE) != null))
    warning("Classpath is empty. " + Constants.PRIVATE_PACKAGE + " (-privatepackage) and " + EXPORT_PACKAGE
      + " can only expand from the classpath when there is one");
}

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

/**
 * Allow any local initialization by subclasses before we build.
 */
public void init() throws Exception {
  begin();
  doRequireBnd();
  // Check if we have sensible setup
  if (getClasspath().size() == 0
      && (getProperty(EXPORT_PACKAGE) != null || getProperty(EXPORT_PACKAGE) != null || getProperty(PRIVATE_PACKAGE) != null || getProperty(PRIVATEPACKAGE) != null))
    warning("Classpath is empty. " + Constants.PRIVATE_PACKAGE + " (-privatepackage) and " + EXPORT_PACKAGE + " can only expand from the classpath when there is one");
}

相关文章

Builder类方法