本文整理了Java中aQute.bnd.osgi.Builder.addClasspath()
方法的一些代码示例,展示了Builder.addClasspath()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Builder.addClasspath()
方法的具体详情如下:
包路径:aQute.bnd.osgi.Builder
类名称:Builder
方法名:addClasspath
暂无
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
public void addClasspath(Container c) throws IOException {
File file = c.getFile();
if ((c.getType() == TYPE.PROJECT) && !file.exists()) {
return;
}
Jar jar = new Jar(file);
super.addClasspath(jar);
project.unreferencedClasspathEntries.put(jar.getName(), c);
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
public void addClasspath(Container c) throws IOException {
File file = c.getFile();
if ((c.getType() == TYPE.PROJECT) && !file.exists()) {
return;
}
Jar jar = new Jar(file);
super.addClasspath(jar);
project.unreferencedClasspathEntries.put(jar.getName(), c);
}
代码示例来源:origin: biz.aQute.bnd/bndlib
public Builder getSubBuilder() throws Exception {
Builder builder = new Builder(this);
builder.setBase(getBase());
for (Jar file : getClasspath()) {
builder.addClasspath(file);
}
return builder;
}
代码示例来源:origin: biz.aQute/bndlib
public Builder getSubBuilder() throws Exception {
Builder builder = new Builder(this);
builder.setBase(getBase());
for (Jar file : getClasspath()) {
builder.addClasspath(file);
}
return builder;
}
代码示例来源:origin: biz.aQute.bnd/bnd
public Builder getSubBuilder() throws Exception {
Builder builder = new Builder(this);
builder.setBase(getBase());
for (Jar file : getClasspath()) {
builder.addClasspath(file);
}
return builder;
}
代码示例来源:origin: biz.aQute.bnd/bnd
for (Pom dep : dependencies) {
System.err.printf("%20s %-20s %10s%n", dep.getGroupId(), dep.getArtifactId(), dep.getVersion());
a.addClasspath(dep.getArtifact());
代码示例来源:origin: biz.aQute/bndlib
for (Pom dep : dependencies) {
System.err.printf("%20s %-20s %10s%n", dep.getGroupId(), dep.getArtifactId(), dep.getVersion());
a.addClasspath(dep.getArtifact());
代码示例来源:origin: biz.aQute.bnd/bndlib
for (Pom dep : dependencies) {
System.err.printf("%20s %-20s %10s%n", dep.getGroupId(), dep.getArtifactId(), dep.getVersion());
a.addClasspath(dep.getArtifact());
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
System.err.printf("%20s %-20s %10s%n", dep.getGroupId(), dep.getArtifactId(),
dep.getVersion());
a.addClasspath(dep.getArtifact());
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
public Builder getSubBuilder() throws Exception {
Builder builder = new Builder(this);
builder.setBase(getBase());
builder.use(this);
for (Jar file : getClasspath()) {
builder.addClasspath(file);
}
return builder;
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
public Builder getSubBuilder() throws Exception {
Builder builder = new Builder(this);
builder.setBase(getBase());
builder.use(this);
for (Jar file : getClasspath()) {
builder.addClasspath(file);
}
return builder;
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
System.err.printf("%20s %-20s %10s%n", dep.getGroupId(), dep.getArtifactId(),
dep.getVersion());
a.addClasspath(dep.getArtifact());
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
Builder b = new Builder(this);
this.addClose(b);
b.addClasspath(jar);
b.setProperty("Bnd-Message", "Wrapped from " + id + "because lacked manifest");
b.setProperty(Constants.EXPORT_PACKAGE, "*");
Builder b = new Builder(this);
this.addClose(b);
b.addClasspath(jar);
b.setProperty(Constants.PRIVATE_PACKAGE, "*");
b.mergeManifest(manifest);
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
Builder b = new Builder(this);
this.addClose(b);
b.addClasspath(jar);
b.setProperty("Bnd-Message", "Wrapped from " + id + "because lacked manifest");
b.setProperty(Constants.EXPORT_PACKAGE, "*");
Builder b = new Builder(this);
this.addClose(b);
b.addClasspath(jar);
b.setProperty(Constants.PRIVATE_PACKAGE, "*");
b.mergeManifest(manifest);
代码示例来源:origin: biz.aQute/bndlib
public Jar getValidJar(Jar jar, String id) throws Exception {
Manifest manifest = jar.getManifest();
if (manifest == null) {
trace("Wrapping with all defaults");
Builder b = new Builder(this);
b.addClasspath(jar);
b.setProperty("Bnd-Message", "Wrapped from " + id + "because lacked manifest");
b.setProperty(Constants.EXPORT_PACKAGE, "*");
b.setProperty(Constants.IMPORT_PACKAGE, "*;resolution:=optional");
jar = b.build();
} else if (manifest.getMainAttributes().getValue(Constants.BUNDLE_MANIFESTVERSION) == null) {
trace("Not a release 4 bundle, wrapping with manifest as source");
Builder b = new Builder(this);
b.addClasspath(jar);
b.setProperty(Constants.PRIVATE_PACKAGE, "*");
b.mergeManifest(manifest);
String imprts = manifest.getMainAttributes().getValue(Constants.IMPORT_PACKAGE);
if (imprts == null)
imprts = "";
else
imprts += ",";
imprts += "*;resolution=optional";
b.setProperty(Constants.IMPORT_PACKAGE, imprts);
b.setProperty("Bnd-Message", "Wrapped from " + id + "because had incomplete manifest");
jar = b.build();
}
return jar;
}
代码示例来源:origin: biz.aQute.bnd/bndlib
public Jar getValidJar(Jar jar, String id) throws Exception {
Manifest manifest = jar.getManifest();
if (manifest == null) {
trace("Wrapping with all defaults");
Builder b = new Builder(this);
this.addClose(b);
b.addClasspath(jar);
b.setProperty("Bnd-Message", "Wrapped from " + id + "because lacked manifest");
b.setProperty(Constants.EXPORT_PACKAGE, "*");
b.setProperty(Constants.IMPORT_PACKAGE, "*;resolution:=optional");
jar = b.build();
} else if (manifest.getMainAttributes().getValue(Constants.BUNDLE_MANIFESTVERSION) == null) {
trace("Not a release 4 bundle, wrapping with manifest as source");
Builder b = new Builder(this);
this.addClose(b);
b.addClasspath(jar);
b.setProperty(Constants.PRIVATE_PACKAGE, "*");
b.mergeManifest(manifest);
String imprts = manifest.getMainAttributes().getValue(Constants.IMPORT_PACKAGE);
if (imprts == null)
imprts = "";
else
imprts += ",";
imprts += "*;resolution=optional";
b.setProperty(Constants.IMPORT_PACKAGE, imprts);
b.setProperty("Bnd-Message", "Wrapped from " + id + "because had incomplete manifest");
jar = b.build();
}
return jar;
}
代码示例来源:origin: biz.aQute.bnd/bnd
public Jar getValidJar(Jar jar, String id) throws Exception {
Manifest manifest = jar.getManifest();
if (manifest == null) {
trace("Wrapping with all defaults");
Builder b = new Builder(this);
this.addClose(b);
b.addClasspath(jar);
b.setProperty("Bnd-Message", "Wrapped from " + id + "because lacked manifest");
b.setProperty(Constants.EXPORT_PACKAGE, "*");
b.setProperty(Constants.IMPORT_PACKAGE, "*;resolution:=optional");
jar = b.build();
} else if (manifest.getMainAttributes().getValue(Constants.BUNDLE_MANIFESTVERSION) == null) {
trace("Not a release 4 bundle, wrapping with manifest as source");
Builder b = new Builder(this);
this.addClose(b);
b.addClasspath(jar);
b.setProperty(Constants.PRIVATE_PACKAGE, "*");
b.mergeManifest(manifest);
String imprts = manifest.getMainAttributes().getValue(Constants.IMPORT_PACKAGE);
if (imprts == null)
imprts = "";
else
imprts += ",";
imprts += "*;resolution=optional";
b.setProperty(Constants.IMPORT_PACKAGE, imprts);
b.setProperty("Bnd-Message", "Wrapped from " + id + "because had incomplete manifest");
jar = b.build();
}
return jar;
}
代码示例来源:origin: biz.aQute.bnd/bnd
if (options.classpath() != null) {
for (String f : options.classpath()) {
b.addClasspath(getFile(f));
EclipseClasspath ep = new EclipseClasspath(this, getBase().getParentFile(), getBase());
b.addClasspath(ep.getClasspath());
b.addClasspath(ep.getBootclasspath());
b.addSourcepath(ep.getSourcepath());
代码示例来源:origin: diffplug/goomph
builder.addClasspath(runtimeConfig);
内容来源于网络,如有侵权,请联系作者删除!