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

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

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

Builder.setProperties介绍

暂无

代码示例

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

public Builder getSubBuilder(File file) throws Exception {
  Builder builder = getSubBuilder();
  if (builder != null) {
    builder.setProperties(file);
    addClose(builder);
  }
  return builder;
}

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

public Builder getSubBuilder(File file) throws Exception {
  Builder builder = getSubBuilder();
  if (builder != null) {
    builder.setProperties(file);
    addClose(builder);
  }
  return builder;
}

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

public Builder getSubBuilder(File file) throws Exception {
  Builder builder = getSubBuilder();
  if (builder != null) {
    builder.setProperties(file);
    addClose(builder);
  }
  return builder;
}

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

public Builder getSubBuilder(File file) throws Exception {
  Builder builder = getSubBuilder();
  if (builder != null) {
    builder.setProperties(file);
    addClose(builder);
  }
  return builder;
}

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

public Builder getSubBuilder(File file) throws Exception {
  Builder builder = getSubBuilder();
  if (builder != null) {
    builder.setProperties(file);
    addClose(builder);
  }
  return builder;
}

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

private void prebuild(List<String> set, List<String> order, List<Builder> builders, String s) throws IOException {
  if (order.contains(s)) // Already done
    return;
  if (set.contains(s))
    error("Cyclic -prebuild dependency %s from %s", s, set);
  Builder b = new Builder(this);
  b.setProperties(getFile(s));
  String prebuild = b.get("prebuild");
  if (prebuild != null) {
    set.add(s);
    try {
      Collection<String> parts = split(prebuild);
      for (String p : parts) {
        prebuild(set, order, builders, p);
      }
    }
    finally {
      set.remove(s);
    }
  }
  order.add(s);
  builders.add(b);
}

代码示例来源:origin: org.apache.felix/maven-bundle-plugin

builder.setProperties( sanitize( properties ) );
if ( classpath != null )

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

bchild.setProperties(bndfile, builder.getBase());

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

bchild.setProperties(bndfile, builder.getBase());

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

bchild.setProperties(bndfile, builder.getBase());

代码示例来源:origin: org.wisdom-framework/wisdom-maven-plugin

private static Builder getOSGiBuilder(File basedir, Properties properties,
                   Jar[] classpath) {
  Builder builder = new Builder();
  synchronized (BundlePackager.class) {
    builder.setBase(basedir);
  }
  // Add the range fixer plugin
  final ImportedPackageRangeFixer plugin = new ImportedPackageRangeFixer();
  plugin.setReporter(builder);
  plugin.setProperties(Collections.<String, String>emptyMap());
  builder.addBasicPlugin(plugin);
  builder.setProperties(Instructions.sanitize(properties));
  if (classpath != null) {
    builder.setClasspath(classpath);
  }
  return builder;
}

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

bchild.setProperties(bndfile, builder.getBase());

代码示例来源:origin: com.atlassian.plugins/atlassian-plugins-osgi

properties.getProperty(Analyzer.EXPORT_PACKAGE)));
builder.setProperties(properties);
builder.calcManifest();
try (Jar jar = builder.build()) {

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

builder.setProperties(file);
projectProperties.putAll((Map< ? , ? >) getProject().getProperties());
projectProperties.putAll(builder.getProperties());
builder.setProperties(projectProperties);

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

bchild.setProperties(bndfile, builder.getBase());

代码示例来源:origin: org.ops4j.pax.tinybundles/tinybundles

analyzer.setProperties( properties );

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

public void build(String dest, boolean force, String path) throws IOException, Exception {
  Builder b = new Builder();
  try {
    File f = getFile(path);
    if (!f.isFile()) {
      error("No such file %s", f);
      return;
    }
    b.setTrace(isTrace());
    b.setPedantic(isPedantic());
    b.setProperties(f);
    List<Builder> subs = b.getSubBuilders();
    for (Builder bb : subs) {
      trace("building %s", bb.getPropertiesFile());
      bb.build();
      File out = bb.getOutputFile(dest);
      getInfo(bb, bb.getBsn() + ": ");
      if (isOk()) {
        bb.save(out, force);
      }
      getInfo(bb, bb.getBsn() + ": "); // pickup any save errors
      if (!isOk()) {
        out.delete();
      }
    }
  }
  finally {
    b.close();
  }
}

相关文章

Builder类方法