本文整理了Java中aQute.bnd.osgi.Builder.mergeProperties()
方法的一些代码示例,展示了Builder.mergeProperties()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Builder.mergeProperties()
方法的具体详情如下:
包路径:aQute.bnd.osgi.Builder
类名称:Builder
方法名:mergeProperties
暂无
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
public Pattern getDoNotCopy() {
if (xdoNotCopy == null) {
String string = null;
try {
string = mergeProperties(DONOTCOPY);
if (string == null || string.isEmpty())
string = DEFAULT_DO_NOT_COPY;
xdoNotCopy = Pattern.compile(string);
} catch (Exception e) {
error("Invalid value for %s, value is %s", DONOTCOPY, string).header(DONOTCOPY);
xdoNotCopy = Pattern.compile(DEFAULT_DO_NOT_COPY);
}
}
return xdoNotCopy;
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
public Pattern getDoNotCopy() {
if (xdoNotCopy == null) {
String string = null;
try {
string = mergeProperties(DONOTCOPY);
if (string == null || string.isEmpty())
string = DEFAULT_DO_NOT_COPY;
xdoNotCopy = Pattern.compile(string);
} catch (Exception e) {
error("Invalid value for %s, value is %s", DONOTCOPY, string).header(DONOTCOPY);
xdoNotCopy = Pattern.compile(DEFAULT_DO_NOT_COPY);
}
}
return xdoNotCopy;
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
/**
* Parse the Bundle-Includes header. Files in the bundles Include header are
* included in the jar. The source can be a directory or a file.
*
* @throws IOException
* @throws FileNotFoundException
*/
private void doIncludeResources(Jar jar) throws Exception {
String includes = getProperty("Bundle-Includes");
if (includes == null) {
includes = mergeProperties(INCLUDERESOURCE);
if (includes == null || includes.length() == 0)
includes = mergeProperties(Constants.INCLUDE_RESOURCE);
} else
warning("Please use -includeresource instead of Bundle-Includes");
doIncludeResource(jar, includes);
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
/**
* Parse the Bundle-Includes header. Files in the bundles Include header are
* included in the jar. The source can be a directory or a file.
*
* @throws IOException
* @throws FileNotFoundException
*/
private void doIncludeResources(Jar jar) throws Exception {
String includes = getProperty("Bundle-Includes");
if (includes == null) {
includes = mergeProperties(INCLUDERESOURCE);
if (includes == null || includes.length() == 0)
includes = mergeProperties(Constants.INCLUDE_RESOURCE);
} else
warning("Please use -includeresource instead of Bundle-Includes");
doIncludeResource(jar, includes);
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
private Instructions getPreProcessMatcher(Map<String, String> extra) {
if (defaultPreProcessMatcher == null) {
String preprocessmatchers = mergeProperties(PREPROCESSMATCHERS);
if (preprocessmatchers == null || preprocessmatchers.trim()
.length() == 0)
preprocessmatchers = Constants.DEFAULT_PREPROCESSS_MATCHERS;
defaultPreProcessMatcher = new Instructions(preprocessmatchers);
}
if (extra == null)
return defaultPreProcessMatcher;
String additionalMatchers = extra.get(PREPROCESSMATCHERS);
if (additionalMatchers == null)
return defaultPreProcessMatcher;
Instructions specialMatcher = new Instructions(additionalMatchers);
specialMatcher.putAll(defaultPreProcessMatcher);
return specialMatcher;
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
private Instructions getPreProcessMatcher(Map<String, String> extra) {
if (defaultPreProcessMatcher == null) {
String preprocessmatchers = mergeProperties(PREPROCESSMATCHERS);
if (preprocessmatchers == null || preprocessmatchers.trim()
.length() == 0)
preprocessmatchers = Constants.DEFAULT_PREPROCESSS_MATCHERS;
defaultPreProcessMatcher = new Instructions(preprocessmatchers);
}
if (extra == null)
return defaultPreProcessMatcher;
String additionalMatchers = extra.get(PREPROCESSMATCHERS);
if (additionalMatchers == null)
return defaultPreProcessMatcher;
Instructions specialMatcher = new Instructions(additionalMatchers);
specialMatcher.putAll(defaultPreProcessMatcher);
return specialMatcher;
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
public Collection<File> getSourcePath() {
if (firstUse) {
firstUse = false;
String sp = mergeProperties(SOURCEPATH);
if (sp != null) {
Parameters map = parseHeader(sp);
for (Iterator<String> i = map.keySet()
.iterator(); i.hasNext();) {
String file = i.next();
if (!isDuplicate(file)) {
File f = getFile(file);
if (!f.isDirectory()) {
error("Adding a sourcepath that is not a directory: %s", f).header(SOURCEPATH)
.context(file);
} else {
sourcePath.add(f);
}
}
}
}
}
return sourcePath;
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
public Collection<File> getSourcePath() {
if (firstUse) {
firstUse = false;
String sp = mergeProperties(SOURCEPATH);
if (sp != null) {
Parameters map = parseHeader(sp);
for (Iterator<String> i = map.keySet()
.iterator(); i.hasNext();) {
String file = i.next();
if (!isDuplicate(file)) {
File f = getFile(file);
if (!f.isDirectory()) {
error("Adding a sourcepath that is not a directory: %s", f).header(SOURCEPATH)
.context(file);
} else {
sourcePath.add(f);
}
}
}
}
}
return sourcePath;
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
Parameters clauses = parseHeader(mergeProperties(Constants.EXPORT_PACKAGE));
clauses.putAll(parseHeader(mergeProperties(Constants.PRIVATE_PACKAGE)));
clauses.putAll(parseHeader(mergeProperties(Constants.PRIVATEPACKAGE)));
if (isTrue(getProperty(Constants.UNDERTEST))) {
clauses.putAll(parseHeader(mergeProperties(Constants.TESTPACKAGES, "test;presence:=optional")));
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
Parameters clauses = parseHeader(mergeProperties(Constants.EXPORT_PACKAGE));
clauses.putAll(parseHeader(mergeProperties(Constants.PRIVATE_PACKAGE)));
clauses.putAll(parseHeader(mergeProperties(Constants.PRIVATEPACKAGE)));
if (isTrue(getProperty(Constants.UNDERTEST))) {
clauses.putAll(parseHeader(mergeProperties(Constants.TESTPACKAGES, "test;presence:=optional")));
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
String h = mergeProperties(Constants.TESTPACKAGES, "test;presence:=optional");
includedPackages.putAll(parseHeader(h));
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
String h = mergeProperties(Constants.TESTPACKAGES, "test;presence:=optional");
includedPackages.putAll(parseHeader(h));
内容来源于网络,如有侵权,请联系作者删除!