本文整理了Java中aQute.bnd.osgi.Builder.builds()
方法的一些代码示例,展示了Builder.builds()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Builder.builds()
方法的具体详情如下:
包路径:aQute.bnd.osgi.Builder
类名称: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;
}
内容来源于网络,如有侵权,请联系作者删除!