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

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

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

Builder.doCommand介绍

[英]It is possible in Include-Resource to use a system command that generates the contents, this is indicated with cmd attribute. The command can be repeated for a number of source files with the forattribute which indicates a list of repetitions, often down with the Macro#_lsa(String[]) or Macro#_lsb(String[]) macro. The repetition will repeat the given command for each item. The @} macro can be used to replace the current item. If no for is given, the source is used as the only item. If the destination contains a macro, each iteration will create a new file, otherwise the destination name is used.
[中]在Include资源中,可以使用生成内容的系统命令,这用cmd属性表示。可以使用forattribute对多个源文件重复该命令,forattribute指示重复列表,通常使用宏#u lsa(字符串[])或宏#u lsb(字符串[])宏。重复将对每个项目重复给定的命令。@}宏可用于替换当前项。如果未给出for,则源将用作唯一项。如果目标包含宏,则每次迭代将创建一个新文件,否则将使用目标名称。

代码示例

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

extractFromJar(jar, source.substring(1), parts.length == 1 ? "" : destination, absentIsOk);
} else if (extra.containsKey("cmd")) {
  doCommand(jar, source, destination, extra, preprocess, absentIsOk);
} else if (extra.containsKey(LITERAL_ATTRIBUTE)) {
  String literal = extra.get(LITERAL_ATTRIBUTE);

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

extractFromJar(jar, source.substring(1), parts.length == 1 ? "" : destination, absentIsOk);
} else if (extra.containsKey("cmd")) {
  doCommand(jar, source, destination, extra, preprocess, absentIsOk);
} else if (extra.containsKey(LITERAL_ATTRIBUTE)) {
  String literal = extra.get(LITERAL_ATTRIBUTE);

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

extractFromJar(jar, source.substring(1), parts.length == 1 ? "" : destination, absentIsOk);
} else if (extra.containsKey("cmd")) {
  doCommand(jar, source, destination, extra, preprocess, absentIsOk);
} else if (extra.containsKey(LITERAL_ATTRIBUTE)) {
  String literal = extra.get(LITERAL_ATTRIBUTE);

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

extractFromJar(jar, source.substring(1), parts.length == 1 ? "" : destination, absentIsOk);
} else if (extra.containsKey("cmd")) {
  doCommand(jar, source, destination, extra, preprocess, absentIsOk);
} else if (extra.containsKey(LITERAL_ATTRIBUTE)) {
  String literal = extra.get(LITERAL_ATTRIBUTE);

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

extractFromJar(jar, source.substring(1), parts.length == 1 ? "" : destination, absentIsOk);
} else if (extra.containsKey("cmd")) {
  doCommand(jar, source, destination, extra, preprocess, absentIsOk);
} else if (extra.containsKey(LITERAL_ATTRIBUTE)) {
  String literal = extra.get(LITERAL_ATTRIBUTE);

相关文章

Builder类方法