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

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

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

Analyzer.getBndVersion介绍

[英]Get the version for this bnd
[中]获取此bnd的版本

代码示例

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

if (!o.xtra()) {
  Analyzer a = new Analyzer();
  out.println(a.getBndVersion());
  a.close();
  return;

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

main.putValue(CREATED_BY, System.getProperty("java.version") + " (" + System.getProperty("java.vendor")
    + ")");
main.putValue(TOOL, "Bnd-" + getBndVersion());
main.putValue(BND_LASTMODIFIED, "" + System.currentTimeMillis());

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

/**
 * Ensure that we are running on the correct bnd.
 */
protected void doRequireBnd() {
  Attrs require = OSGiHeader.parseProperties(getProperty(REQUIRE_BND));
  if (require == null || require.isEmpty())
    return;
  Hashtable<String, String> map = new Hashtable<>();
  map.put(Constants.VERSION_FILTER, getBndVersion());
  for (String filter : require.keySet()) {
    try {
      Filter f = new Filter(filter);
      if (f.match(map))
        continue;
      error("%s fails for filter %s values=%s", REQUIRE_BND, require.get(filter), map);
    } catch (Exception t) {
      exception(t, "%s with value %s throws exception", REQUIRE_BND, require);
    }
  }
}

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

/**
 * Ensure that we are running on the correct bnd.
 */
void doRequireBnd() {
  Attrs require = OSGiHeader.parseProperties(getProperty(REQUIRE_BND));
  if (require == null || require.isEmpty())
    return;
  Hashtable<String,String> map = new Hashtable<String,String>();
  map.put(Constants.VERSION_FILTER, getBndVersion());
  for (String filter : require.keySet()) {
    try {
      Filter f = new Filter(filter);
      if (f.match(map))
        continue;
      error("%s fails %s", REQUIRE_BND, require.get(filter));
    }
    catch (Exception t) {
      error("%s with value %s throws exception", t, REQUIRE_BND, require);
    }
  }
}

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

/**
 * Ensure that we are running on the correct bnd.
 */
protected void doRequireBnd() {
  Attrs require = OSGiHeader.parseProperties(getProperty(REQUIRE_BND));
  if (require == null || require.isEmpty())
    return;
  Hashtable<String, String> map = new Hashtable<>();
  map.put(Constants.VERSION_FILTER, getBndVersion());
  for (String filter : require.keySet()) {
    try {
      Filter f = new Filter(filter);
      if (f.match(map))
        continue;
      error("%s fails for filter %s values=%s", REQUIRE_BND, require.get(filter), map);
    } catch (Exception t) {
      exception(t, "%s with value %s throws exception", REQUIRE_BND, require);
    }
  }
}

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

/**
 * Ensure that we are running on the correct bnd.
 */
void doRequireBnd() {
  Attrs require = OSGiHeader.parseProperties(getProperty(REQUIRE_BND));
  if (require == null || require.isEmpty())
    return;
  Hashtable<String,String> map = new Hashtable<String,String>();
  map.put(Constants.VERSION_FILTER, getBndVersion());
  for (String filter : require.keySet()) {
    try {
      Filter f = new Filter(filter);
      if (f.match(map))
        continue;
      error("%s fails %s", REQUIRE_BND, require.get(filter));
    }
    catch (Exception t) {
      error("%s with value %s throws exception", t, REQUIRE_BND, require);
    }
  }
}

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

/**
 * Ensure that we are running on the correct bnd.
 */
void doRequireBnd() {
  Attrs require = OSGiHeader.parseProperties(getProperty(REQUIRE_BND));
  if (require == null || require.isEmpty())
    return;
  Hashtable<String,String> map = new Hashtable<String,String>();
  map.put(Constants.VERSION_FILTER, getBndVersion());
  for (String filter : require.keySet()) {
    try {
      Filter f = new Filter(filter);
      if (f.match(map))
        continue;
      error("%s fails %s", REQUIRE_BND, require.get(filter));
    }
    catch (Exception t) {
      error("%s with value %s throws exception", t, REQUIRE_BND, require);
    }
  }
}

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

main.putValue(CREATED_BY, System.getProperty("java.version") + " (" + System.getProperty("java.vendor")
    + ")");
main.putValue(TOOL, "Bnd-" + getBndVersion());
main.putValue(BND_LASTMODIFIED, "" + System.currentTimeMillis());

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

main.putValue(CREATED_BY, System.getProperty("java.version") + " (" + System.getProperty("java.vendor")
    + ")");
main.putValue(TOOL, "Bnd-" + getBndVersion());
main.putValue(BND_LASTMODIFIED, "" + System.currentTimeMillis());

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

main.putValue(CREATED_BY,
  System.getProperty("java.version") + " (" + System.getProperty("java.vendor") + ")");
main.putValue(TOOL, "Bnd-" + getBndVersion());
if (!dot.isReproducible()) {
  main.putValue(BND_LASTMODIFIED, Long.toString(System.currentTimeMillis()));

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

main.putValue(CREATED_BY,
  System.getProperty("java.version") + " (" + System.getProperty("java.vendor") + ")");
main.putValue(TOOL, "Bnd-" + getBndVersion());
if (!dot.isReproducible()) {
  main.putValue(BND_LASTMODIFIED, Long.toString(System.currentTimeMillis()));

相关文章

Analyzer类方法