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

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

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

Builder.builds介绍

[英]Build Multiple jars. If the -sub command is set, we filter the file with the given patterns.
[中]构建多个jar。如果设置了-sub命令,我们将使用给定的模式过滤文件。

代码示例

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

Jar jars[] = builder.builds();

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

/**
 * Add some extra stuff to the builds() method like exporting.
 */
@Override
public Jar[] builds() throws Exception {
  project.exportedPackages.clear();
  project.importedPackages.clear();
  project.containedPackages.clear();
  Jar[] jars = super.builds();
  if (isOk()) {
    for (Run export : getExportedRuns()) {
      addClose(export);
      if (export.getProperty(BUNDLE_SYMBOLICNAME) == null) {
        export.setProperty(BUNDLE_SYMBOLICNAME, getBsn() + ".run");
      }
      Jar pack = export.pack(getProperty(PROFILE));
      getInfo(export);
      if (pack != null) {
        jars = concat(Jar.class, jars, pack);
        addClose(pack);
      }
    }
  }
  return jars;
}

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

/**
 * Add some extra stuff to the builds() method like exporting.
 */
public Jar[] builds() throws Exception {
  project.exportedPackages.clear();
  project.importedPackages.clear();
  project.containedPackages.clear();
  
  Jar[] jars = super.builds();
  if (isOk()) {
    for (Run export : getExportedRuns()) {
      addClose(export);
      if ( export.getProperty(BUNDLE_SYMBOLICNAME) == null) {
        export.setProperty(BUNDLE_SYMBOLICNAME, getBsn() + ".run");
      }
      Jar pack = export.pack(getProperty(PROFILE));
      getInfo(export);
      if ( pack != null) {
        jars = concat(Jar.class,jars, pack);
        addClose(pack);
      }
    }
  }
  return jars;
}

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

/**
 * Add some extra stuff to the builds() method like exporting.
 */
public Jar[] builds() throws Exception {
  project.exportedPackages.clear();
  project.importedPackages.clear();
  project.containedPackages.clear();
  
  Jar[] jars = super.builds();
  if (isOk()) {
    for (Run export : getExportedRuns()) {
      addClose(export);
      if ( export.getProperty(BUNDLE_SYMBOLICNAME) == null) {
        export.setProperty(BUNDLE_SYMBOLICNAME, getBsn() + ".run");
      }
      Jar pack = export.pack(getProperty(PROFILE));
      getInfo(export);
      if ( pack != null) {
        jars = concat(Jar.class,jars, pack);
        addClose(pack);
      }
    }
  }
  return jars;
}

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

/**
 * Add some extra stuff to the builds() method like exporting.
 */
@Override
public Jar[] builds() throws Exception {
  project.exportedPackages.clear();
  project.importedPackages.clear();
  project.containedPackages.clear();
  Jar[] jars = super.builds();
  if (isOk()) {
    for (Run export : getExportedRuns()) {
      addClose(export);
      if (export.getProperty(BUNDLE_SYMBOLICNAME) == null) {
        export.setProperty(BUNDLE_SYMBOLICNAME, getBsn() + ".run");
      }
      Jar pack = export.pack(getProperty(PROFILE));
      getInfo(export);
      if (pack != null) {
        jars = concat(Jar.class, jars, pack);
        addClose(pack);
      }
    }
  }
  return jars;
}

相关文章

Builder类方法