/** * Report the details of this analyzer */ @Override public void report(Map<String, Object> table) throws Exception { super.report(table); analyze(); table.put("Contained", getContained().entrySet()); table.put("Imported", getImports().entrySet()); table.put("Exported", getExports().entrySet()); table.put("Referred", getReferred().entrySet()); table.put("Bundle Symbolic Name", getBsn()); table.put("Execution Environments", ees); }
/** * Report the details of this analyzer */ @Override public void report(Map<String, Object> table) throws Exception { super.report(table); analyze(); table.put("Contained", getContained().entrySet()); table.put("Imported", getImports().entrySet()); table.put("Exported", getExports().entrySet()); table.put("Referred", getReferred().entrySet()); table.put("Bundle Symbolic Name", getBsn()); table.put("Execution Environments", ees); }
/** * Report the details of this analyzer */ public void report(Map<String,Object> table) throws Exception { super.report(table); analyze(); table.put("Contained", getContained().entrySet()); table.put("Imported", getImports().entrySet()); table.put("Exported", getExports().entrySet()); table.put("Referred", getReferred().entrySet()); table.put("Referred", getReferred().entrySet()); table.put("Bundle Symbolic Name", getBsn()); table.put("Execution Environments", ees); }
/** * Report the details of this analyzer */ public void report(Map<String,Object> table) throws Exception { super.report(table); analyze(); table.put("Contained", getContained().entrySet()); table.put("Imported", getImports().entrySet()); table.put("Exported", getExports().entrySet()); table.put("Referred", getReferred().entrySet()); table.put("Referred", getReferred().entrySet()); table.put("Bundle Symbolic Name", getBsn()); table.put("Execution Environments", ees); }
Set<PackageRef> unresolvedReferences = new TreeSet<PackageRef>(analyzer.getReferred().keySet()); unresolvedReferences.removeAll(analyzer.getImports().keySet()); unresolvedReferences.removeAll(analyzer.getContained().keySet());
if (!analyzer.getContained() .containsFQN(e.getKey())) { SetLocation warning = warning("Export-Package or -exportcontents refers to missing package '%s'",
if (!analyzer.getContained() .containsFQN(e.getKey())) { SetLocation warning = warning("Export-Package or -exportcontents refers to missing package '%s'",
exports.put(analyzer.getPackageRef(entry.getKey()), entry.getValue()); } else exports = analyzer.getContained();
exports.put(analyzer.getPackageRef(entry.getKey()), entry.getValue()); } else exports = analyzer.getContained();
exports.put(analyzer.getPackageRef(entry.getKey()), entry.getValue()); } else exports = analyzer.getContained();
for (Entry<PackageRef, Attrs> e : a.getContained() .entrySet()) { extra.append(del);
for (Entry<PackageRef, Attrs> e : a.getContained() .entrySet()) { extra.append(del);
exports.put(analyzer.getPackageRef(entry.getKey()), entry.getValue()); } else exports = analyzer.getContained();
exports.put(analyzer.getPackageRef(entry.getKey()), entry.getValue()); } else exports = analyzer.getContained();
unresolvedReferences.removeAll(analyzer.getContained().keySet()); for ( String pname : domain.getImportPackage().keySet()) { PackageRef pref = analyzer.getPackageRef(pname);
unresolvedReferences.removeAll(analyzer.getContained().keySet()); for ( String pname : domain.getImportPackage().keySet()) { PackageRef pref = analyzer.getPackageRef(pname);
.get(pref); if (info == null) info = analyzer.getContained() .get(pref);
.get(pref); if (info == null) info = analyzer.getContained() .get(pref);
private void add(String name, String value) { if (value == null) return; Processor next = new Processor(analyzer); next.setProperty("@class", current.getFQN()); next.setProperty("@class-short", current.getClassName().getShortName()); PackageRef pref = current.getClassName().getPackageRef(); next.setProperty("@package", pref.getFQN()); Attrs info = analyzer.getClasspathExports().get(pref); if (info == null) info = analyzer.getContained().get(pref); if (info != null && info.containsKey("version")) { next.setProperty("@version", info.get("version")); } Macro macro = next.getReplacer(); /* * These strings come from code, which might also be included from * external parties. So we just do not want to call any system commands * from these sources */ boolean prev = macro.setNosystem(true); try { value = macro.process(value); headers.add(name, value); next.close(); } finally { macro.setNosystem(prev); } }
private void add(String name, String value) { if (value == null) return; Processor next = new Processor(analyzer); next.setProperty("@class", current.getFQN()); next.setProperty("@class-short", current.getClassName().getShortName()); PackageRef pref = current.getClassName().getPackageRef(); next.setProperty("@package", pref.getFQN()); Attrs info = analyzer.getClasspathExports().get(pref); if (info == null) info = analyzer.getContained().get(pref); if (info != null && info.containsKey("version")) { next.setProperty("@version", info.get("version")); } Macro macro = next.getReplacer(); /* * These strings come from code, which might also be included from * external parties. So we just do not want to call any system commands * from these sources */ boolean prev = macro.setNosystem(true); try { value = macro.process(value); headers.add(name, value); next.close(); } finally { macro.setNosystem(prev); } }