本文整理了Java中aQute.bnd.osgi.Builder.addWabLib()
方法的一些代码示例,展示了Builder.addWabLib()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Builder.addWabLib()
方法的具体详情如下:
包路径:aQute.bnd.osgi.Builder
类名称:Builder
方法名:addWabLib
[英]Add a wab lib to the jar.
[中]将wab库添加到jar。
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
/**
* Turn this normal bundle in a web and add any resources.
*
* @throws Exception
*/
private Jar doWab(Jar dot) throws Exception {
String wab = getProperty(WAB);
String wablib = getProperty(WABLIB);
if (wab == null && wablib == null)
return dot;
logger.debug("wab {} {}", wab, wablib);
setBundleClasspath(append("WEB-INF/classes", getProperty(BUNDLE_CLASSPATH)));
Set<String> paths = new HashSet<>(dot.getResources()
.keySet());
for (String path : paths) {
if (path.indexOf('/') > 0 && !Character.isUpperCase(path.charAt(0))) {
logger.debug("wab: moving: {}", path);
dot.rename(path, "WEB-INF/classes/" + path);
}
}
Parameters clauses = parseHeader(getProperty(WABLIB));
for (Map.Entry<String, Attrs> entry : clauses.entrySet()) {
File f = getFile(entry.getKey());
addWabLib(dot, f, entry.getKey(), entry.getValue());
}
doIncludeResource(dot, wab);
return dot;
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
/**
* Turn this normal bundle in a web and add any resources.
*
* @throws Exception
*/
private Jar doWab(Jar dot) throws Exception {
String wab = getProperty(WAB);
String wablib = getProperty(WABLIB);
if (wab == null && wablib == null)
return dot;
logger.debug("wab {} {}", wab, wablib);
setBundleClasspath(append("WEB-INF/classes", getProperty(BUNDLE_CLASSPATH)));
Set<String> paths = new HashSet<>(dot.getResources()
.keySet());
for (String path : paths) {
if (path.indexOf('/') > 0 && !Character.isUpperCase(path.charAt(0))) {
logger.debug("wab: moving: {}", path);
dot.rename(path, "WEB-INF/classes/" + path);
}
}
Parameters clauses = parseHeader(getProperty(WABLIB));
for (Map.Entry<String, Attrs> entry : clauses.entrySet()) {
File f = getFile(entry.getKey());
addWabLib(dot, f, entry.getKey(), entry.getValue());
}
doIncludeResource(dot, wab);
return dot;
}
代码示例来源:origin: biz.aQute/bndlib
f);
} else {
addWabLib(dot, sub);
代码示例来源:origin: biz.aQute.bnd/bndlib
f);
} else {
addWabLib(dot, sub);
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
sub, f);
} else {
addWabLib(dot, sub, part, Collections.emptyMap());
代码示例来源:origin: biz.aQute.bnd/bnd
f);
} else {
addWabLib(dot, sub);
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
sub, f);
} else {
addWabLib(dot, sub, part, Collections.emptyMap());
代码示例来源:origin: biz.aQute/bndlib
/**
* Turn this normal bundle in a web and add any resources.
*
* @throws Exception
*/
private Jar doWab(Jar dot) throws Exception {
String wab = getProperty(WAB);
String wablib = getProperty(WABLIB);
if (wab == null && wablib == null)
return dot;
trace("wab %s %s", wab, wablib);
setBundleClasspath(append("WEB-INF/classes", getProperty(BUNDLE_CLASSPATH)));
Set<String> paths = new HashSet<String>(dot.getResources().keySet());
for (String path : paths) {
if (path.indexOf('/') > 0 && !Character.isUpperCase(path.charAt(0))) {
trace("wab: moving: %s", path);
dot.rename(path, "WEB-INF/classes/" + path);
}
}
Parameters clauses = parseHeader(getProperty(WABLIB));
for (String key : clauses.keySet()) {
File f = getFile(key);
addWabLib(dot, f);
}
doIncludeResource(dot, wab);
return dot;
}
代码示例来源:origin: biz.aQute.bnd/bndlib
/**
* Turn this normal bundle in a web and add any resources.
*
* @throws Exception
*/
private Jar doWab(Jar dot) throws Exception {
String wab = getProperty(WAB);
String wablib = getProperty(WABLIB);
if (wab == null && wablib == null)
return dot;
trace("wab %s %s", wab, wablib);
setBundleClasspath(append("WEB-INF/classes", getProperty(BUNDLE_CLASSPATH)));
Set<String> paths = new HashSet<String>(dot.getResources().keySet());
for (String path : paths) {
if (path.indexOf('/') > 0 && !Character.isUpperCase(path.charAt(0))) {
trace("wab: moving: %s", path);
dot.rename(path, "WEB-INF/classes/" + path);
}
}
Parameters clauses = parseHeader(getProperty(WABLIB));
for (String key : clauses.keySet()) {
File f = getFile(key);
addWabLib(dot, f);
}
doIncludeResource(dot, wab);
return dot;
}
代码示例来源:origin: biz.aQute.bnd/bnd
/**
* Turn this normal bundle in a web and add any resources.
*
* @throws Exception
*/
private Jar doWab(Jar dot) throws Exception {
String wab = getProperty(WAB);
String wablib = getProperty(WABLIB);
if (wab == null && wablib == null)
return dot;
trace("wab %s %s", wab, wablib);
setBundleClasspath(append("WEB-INF/classes", getProperty(BUNDLE_CLASSPATH)));
Set<String> paths = new HashSet<String>(dot.getResources().keySet());
for (String path : paths) {
if (path.indexOf('/') > 0 && !Character.isUpperCase(path.charAt(0))) {
trace("wab: moving: %s", path);
dot.rename(path, "WEB-INF/classes/" + path);
}
}
Parameters clauses = parseHeader(getProperty(WABLIB));
for (String key : clauses.keySet()) {
File f = getFile(key);
addWabLib(dot, f);
}
doIncludeResource(dot, wab);
return dot;
}
内容来源于网络,如有侵权,请联系作者删除!