本文整理了Java中aQute.bnd.osgi.Analyzer.warning()
方法的一些代码示例,展示了Analyzer.warning()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Analyzer.warning()
方法的具体详情如下:
包路径:aQute.bnd.osgi.Analyzer
类名称:Analyzer
方法名:warning
暂无
代码示例来源:origin: biz.aQute/bndlib
public void addClasspath(File cp) throws IOException {
if (!cp.exists())
warning("File on classpath that does not exist: " + cp);
Jar jar = new Jar(cp);
addClose(jar);
classpath.add(jar);
}
代码示例来源:origin: biz.aQute.bnd/bndlib
public void addClasspath(File cp) throws IOException {
if (!cp.exists())
warning("File on classpath that does not exist: " + cp);
Jar jar = new Jar(cp);
addClose(jar);
classpath.add(jar);
}
代码示例来源:origin: biz.aQute.bnd/bnd
public void addClasspath(File cp) throws IOException {
if (!cp.exists())
warning("File on classpath that does not exist: " + cp);
Jar jar = new Jar(cp);
addClose(jar);
classpath.add(jar);
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
public void addClasspath(File cp) throws IOException {
if (!cp.exists())
warning("File on classpath that does not exist: %s", cp);
Jar jar = new Jar(cp);
addClasspath(jar);
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
public void addClasspath(File cp) throws IOException {
if (!cp.exists())
warning("File on classpath that does not exist: %s", cp);
Jar jar = new Jar(cp);
addClasspath(jar);
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
private <T> Collection<T> filter(Collection<T> list, String[] args) {
if (args == null || args.length <= 1)
return list;
if (args.length > 2)
warning("Too many arguments for ${%s} macro", args[0]);
Instructions instrs = new Instructions(args[1]);
return instrs.select(list, false);
}
代码示例来源:origin: biz.aQute/bndlib
public void addClasspath(Jar jar) {
if (isPedantic() && jar.getResources().isEmpty())
warning("There is an empty jar or directory on the classpath: " + jar.getName());
classpath.add(jar);
}
代码示例来源:origin: biz.aQute.bnd/bndlib
public void addClasspath(Jar jar) {
if (isPedantic() && jar.getResources().isEmpty())
warning("There is an empty jar or directory on the classpath: " + jar.getName());
classpath.add(jar);
}
代码示例来源:origin: biz.aQute.bnd/bndlib
private <T> Collection<T> filter(Collection<T> list, String[] args) {
if (args == null || args.length <= 1)
return list;
if (args.length > 2)
warning("Too many arguments for ${" + args[0] + "} macro");
Instructions instrs = new Instructions(args[1]);
return instrs.select(list, false);
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
private <T> Collection<T> filter(Collection<T> list, String[] args) {
if (args == null || args.length <= 1)
return list;
if (args.length > 2)
warning("Too many arguments for ${%s} macro", args[0]);
Instructions instrs = new Instructions(args[1]);
return instrs.select(list, false);
}
代码示例来源:origin: biz.aQute.bnd/bnd
private <T> Collection<T> filter(Collection<T> list, String[] args) {
if (args == null || args.length <= 1)
return list;
if (args.length > 2)
warning("Too many arguments for ${" + args[0] + "} macro");
Instructions instrs = new Instructions(args[1]);
return instrs.select(list, false);
}
代码示例来源:origin: biz.aQute.bnd/bnd
public void addClasspath(Jar jar) {
if (isPedantic() && jar.getResources().isEmpty())
warning("There is an empty jar or directory on the classpath: " + jar.getName());
classpath.add(jar);
}
代码示例来源:origin: biz.aQute/bndlib
private void process(Analyzer analyzer, String path, Resource resource) {
try {
InputStream in = resource.openInputStream();
Set<String> set = analyze(in);
in.close();
for (Iterator<String> r = set.iterator(); r.hasNext();) {
PackageRef pack = analyzer.getPackageRef(r.next());
if (!QN.matcher(pack.getFQN()).matches())
analyzer.warning("Package does not seem a package in spring resource (" + path + "): " + pack);
if (!analyzer.getReferred().containsKey(pack))
analyzer.getReferred().put(pack);
}
}
catch (Exception e) {
analyzer.error("Unexpected exception in processing spring resources(" + path + "): " + e);
}
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
public void addClasspath(Jar jar) {
if (isPedantic() && jar.getResources()
.isEmpty())
warning("There is an empty jar or directory on the classpath: %s", jar.getName());
addClose(jar);
classpath.add(jar);
updateModified(jar.lastModified(), jar.toString());
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
public void addClasspath(Jar jar) {
if (isPedantic() && jar.getResources()
.isEmpty())
warning("There is an empty jar or directory on the classpath: %s", jar.getName());
addClose(jar);
classpath.add(jar);
updateModified(jar.lastModified(), jar.toString());
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
public List<Jar> getClasspath() {
if (firstUse) {
firstUse = false;
String cp = getProperty(CLASSPATH);
if (cp != null)
for (String s : split(cp)) {
Jar jar = getJarFromName(s, "getting classpath");
if (jar != null)
addClasspath(jar);
else
warning("Cannot find entry on -classpath: %s", s);
}
}
return classpath;
}
代码示例来源:origin: biz.aQute/bndlib
public List<Jar> getClasspath() {
if (firstUse) {
firstUse = false;
String cp = getProperty(CLASSPATH);
if (cp != null)
for (String s : split(cp)) {
Jar jar = getJarFromName(s, "getting classpath");
if (jar != null)
addClasspath(jar);
else
warning("Cannot find entry on -classpath: %s", s);
}
}
return classpath;
}
代码示例来源:origin: biz.aQute.bnd/bndlib
public List<Jar> getClasspath() {
if (firstUse) {
firstUse = false;
String cp = getProperty(CLASSPATH);
if (cp != null)
for (String s : split(cp)) {
Jar jar = getJarFromName(s, "getting classpath");
if (jar != null)
addClasspath(jar);
else
warning("Cannot find entry on -classpath: %s", s);
}
}
return classpath;
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
public List<Jar> getClasspath() {
if (firstUse) {
firstUse = false;
String cp = getProperty(CLASSPATH);
if (cp != null)
for (String s : split(cp)) {
Jar jar = getJarFromName(s, "getting classpath");
if (jar != null)
addClasspath(jar);
else
warning("Cannot find entry on -classpath: %s", s);
}
}
return classpath;
}
代码示例来源:origin: biz.aQute.bnd/bnd
public List<Jar> getClasspath() {
if (firstUse) {
firstUse = false;
String cp = getProperty(CLASSPATH);
if (cp != null)
for (String s : split(cp)) {
Jar jar = getJarFromName(s, "getting classpath");
if (jar != null)
addClasspath(jar);
else
warning("Cannot find entry on -classpath: %s", s);
}
}
return classpath;
}
内容来源于网络,如有侵权,请联系作者删除!