本文整理了Java中aQute.bnd.osgi.Jar.copy()
方法的一些代码示例,展示了Jar.copy()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Jar.copy()
方法的具体详情如下:
包路径:aQute.bnd.osgi.Jar
类名称:Jar
方法名:copy
暂无
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
/**
* Cop
*
* @param dest
* @param srce
* @param path
* @param overwriteResource
*/
private void copy(Jar dest, Jar srce, String path, boolean overwrite) {
logger.debug("copy d={} s={} p={}", dest, srce, path);
dest.copy(srce, path, overwrite);
if (hasSources())
dest.copy(srce, "OSGI-OPT/src/" + path, overwrite);
// bnd.info sources must be preprocessed
String bndInfoPath = path + "/bnd.info";
Resource r = dest.getResource(bndInfoPath);
if (r != null && !(r instanceof PreprocessResource)) {
logger.debug("preprocessing bnd.info");
PreprocessResource pp = new PreprocessResource(this, r);
dest.putResource(bndInfoPath, pp);
}
if (hasSources()) {
String srcPath = "OSGI-OPT/src/" + path;
Map<String, Resource> srcContents = srce.getDirectories()
.get(srcPath);
if (srcContents != null) {
dest.addDirectory(srcContents, overwrite);
}
}
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
/**
* Cop
*
* @param dest
* @param srce
* @param path
* @param overwriteResource
*/
private void copy(Jar dest, Jar srce, String path, boolean overwrite) {
logger.debug("copy d={} s={} p={}", dest, srce, path);
dest.copy(srce, path, overwrite);
if (hasSources())
dest.copy(srce, "OSGI-OPT/src/" + path, overwrite);
// bnd.info sources must be preprocessed
String bndInfoPath = path + "/bnd.info";
Resource r = dest.getResource(bndInfoPath);
if (r != null && !(r instanceof PreprocessResource)) {
logger.debug("preprocessing bnd.info");
PreprocessResource pp = new PreprocessResource(this, r);
dest.putResource(bndInfoPath, pp);
}
if (hasSources()) {
String srcPath = "OSGI-OPT/src/" + path;
Map<String, Resource> srcContents = srce.getDirectories()
.get(srcPath);
if (srcContents != null) {
dest.addDirectory(srcContents, overwrite);
}
}
}
代码示例来源:origin: biz.aQute/bndlib
/**
* Cop
*
* @param dest
* @param srce
* @param path
* @param overwriteResource
*/
private void copy(Jar dest, Jar srce, String path, boolean overwrite) {
trace("copy d=" + dest + " s=" + srce +" p="+ path);
dest.copy(srce, path, overwrite);
// bnd.info sources must be preprocessed
String bndInfoPath = path + "/bnd.info";
Resource r = dest.getResource(bndInfoPath);
if ( r != null && !(r instanceof PreprocessResource)) {
trace("preprocessing bnd.info");
PreprocessResource pp = new PreprocessResource(this, r);
dest.putResource(bndInfoPath, pp);
}
if (hasSources()) {
String srcPath = "OSGI-OPT/src/" + path;
Map<String,Resource> srcContents = srce.getDirectories().get(srcPath);
if (srcContents != null) {
dest.addDirectory(srcContents, overwrite);
}
}
}
代码示例来源:origin: biz.aQute.bnd/bnd
/**
* Cop
*
* @param dest
* @param srce
* @param path
* @param overwriteResource
*/
private void copy(Jar dest, Jar srce, String path, boolean overwrite) {
trace("copy d=" + dest + " s=" + srce + " p=" + path);
dest.copy(srce, path, overwrite);
// bnd.info sources must be preprocessed
String bndInfoPath = path + "/bnd.info";
Resource r = dest.getResource(bndInfoPath);
if (r != null && !(r instanceof PreprocessResource)) {
trace("preprocessing bnd.info");
PreprocessResource pp = new PreprocessResource(this, r);
dest.putResource(bndInfoPath, pp);
}
if (hasSources()) {
String srcPath = "OSGI-OPT/src/" + path;
Map<String,Resource> srcContents = srce.getDirectories().get(srcPath);
if (srcContents != null) {
dest.addDirectory(srcContents, overwrite);
}
}
}
代码示例来源:origin: biz.aQute.bnd/bndlib
/**
* Cop
*
* @param dest
* @param srce
* @param path
* @param overwriteResource
*/
private void copy(Jar dest, Jar srce, String path, boolean overwrite) {
trace("copy d=" + dest + " s=" + srce + " p=" + path);
dest.copy(srce, path, overwrite);
// bnd.info sources must be preprocessed
String bndInfoPath = path + "/bnd.info";
Resource r = dest.getResource(bndInfoPath);
if (r != null && !(r instanceof PreprocessResource)) {
trace("preprocessing bnd.info");
PreprocessResource pp = new PreprocessResource(this, r);
dest.putResource(bndInfoPath, pp);
}
if (hasSources()) {
String srcPath = "OSGI-OPT/src/" + path;
Map<String,Resource> srcContents = srce.getDirectories().get(srcPath);
if (srcContents != null) {
dest.addDirectory(srcContents, overwrite);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!