public String getSystemCapabilities() { return runsystemcapabilities.isEmpty() ? null : runsystemcapabilities.toString(); }
public Map.Entry<String, Attrs> getBundleSymbolicName() { Parameters p = getParameters(BUNDLE_SYMBOLICNAME); if (p.isEmpty()) return null; return p.entrySet() .iterator() .next(); }
public Map.Entry<String,Attrs> getBundleSymbolicName() { Parameters p = getParameters(BUNDLE_SYMBOLICNAME); if (p.isEmpty()) return null; return p.entrySet().iterator().next(); }
public Map.Entry<String, Attrs> getFragmentHost() { Parameters p = getParameters(FRAGMENT_HOST); if (p.isEmpty()) return null; return p.entrySet() .iterator() .next(); }
public Map.Entry<String, Attrs> getFragmentHost() { Parameters p = getParameters(FRAGMENT_HOST); if (p.isEmpty()) return null; return p.entrySet() .iterator() .next(); }
public Map.Entry<String,Attrs> getBundleSymbolicName() { Parameters p = getParameters(BUNDLE_SYMBOLICNAME); if (p.isEmpty()) return null; return p.entrySet().iterator().next(); }
public Map.Entry<String,Attrs> getFragmentHost() { Parameters p = getParameters(FRAGMENT_HOST); if (p.isEmpty()) return null; return p.entrySet().iterator().next(); }
public Map.Entry<String,Attrs> getBundleSymbolicName() { Parameters p = getParameters(BUNDLE_SYMBOLICNAME); if (p.isEmpty()) return null; return p.entrySet().iterator().next(); }
public Map.Entry<String,Attrs> getFragmentHost() { Parameters p = getParameters(FRAGMENT_HOST); if (p.isEmpty()) return null; return p.entrySet().iterator().next(); }
public Map.Entry<String, Attrs> getBundleSymbolicName() { Parameters p = getParameters(BUNDLE_SYMBOLICNAME); if (p.isEmpty()) return null; return p.entrySet() .iterator() .next(); }
/** * Check if we need to calculate any checksums. * * @param dot * @throws Exception */ private void doDigests(Jar dot) throws Exception { Parameters ps = OSGiHeader.parseHeader(getProperty(DIGESTS)); if (ps.isEmpty()) return; logger.debug("digests {}", ps); String[] digests = ps.keySet() .toArray(new String[0]); dot.setDigestAlgorithms(digests); }
private void verifySymbolicName() { Parameters bsn = parseHeader(main.get(Analyzer.BUNDLE_SYMBOLICNAME)); if (!bsn.isEmpty()) { if (bsn.size() > 1) error("More than one BSN specified " + bsn); String name = bsn.keySet().iterator().next(); if (!isBsn(name)) { error("Symbolic Name has invalid format: " + name); } } }
private void verifySymbolicName() { Parameters bsn = parseHeader(main.get(Analyzer.BUNDLE_SYMBOLICNAME)); if (!bsn.isEmpty()) { if (bsn.size() > 1) error("More than one BSN specified " + bsn); String name = bsn.keySet().iterator().next(); if (!isBsn(name)) { error("Symbolic Name has invalid format: " + name); } } }
private void verifySymbolicName() { Parameters bsn = parseHeader(main.get(Analyzer.BUNDLE_SYMBOLICNAME)); if (!bsn.isEmpty()) { if (bsn.size() > 1) error("More than one BSN specified " + bsn); String name = bsn.keySet().iterator().next(); if (!isBsn(name)) { error("Symbolic Name has invalid format: " + name); } } }
private void verifySymbolicName() { Parameters bsn = parseHeader(main.get(Constants.BUNDLE_SYMBOLICNAME)); if (!bsn.isEmpty()) { if (bsn.size() > 1) error("More than one BSN specified %s", bsn); String name = bsn.keySet() .iterator() .next(); if (!isBsn(name)) { error("Symbolic Name has invalid format: %s", name); } } }
private void verifySymbolicName() { Parameters bsn = parseHeader(main.get(Constants.BUNDLE_SYMBOLICNAME)); if (!bsn.isEmpty()) { if (bsn.size() > 1) error("More than one BSN specified %s", bsn); String name = bsn.keySet() .iterator() .next(); if (!isBsn(name)) { error("Symbolic Name has invalid format: %s", name); } } }
private void constructBlacklist(Processor augments) throws Exception { Parameters blacklist = new Parameters(augments.mergeProperties(Constants.RUNBLACKLIST), project); blacklist.putAll(new Parameters(properties.mergeProperties(Constants.RUNBLACKLIST), project)); if (blacklist != null && !blacklist.isEmpty()) { List<Requirement> reject = CapReqBuilder.getRequirementsFrom(blacklist); setBlackList(reject); } }
private void constructBlacklist(Processor augments) throws Exception { Parameters blacklist = new Parameters(augments.mergeProperties(Constants.RUNBLACKLIST), project); blacklist.putAll(new Parameters(properties.mergeProperties(Constants.RUNBLACKLIST), project)); if (blacklist != null && !blacklist.isEmpty()) { List<Requirement> reject = CapReqBuilder.getRequirementsFrom(blacklist); setBlackList(reject); } }
Resource constructInputRequirements() throws Exception { ResourceBuilder resBuilder = new ResourceBuilder(); CapReqBuilder identity = new CapReqBuilder(IdentityNamespace.IDENTITY_NAMESPACE) .addAttribute(IdentityNamespace.IDENTITY_NAMESPACE, IDENTITY_INITIAL_RESOURCE); resBuilder.addCapability(identity); Parameters inputRequirements = new Parameters(properties.mergeProperties(Constants.RUNREQUIRES), project); if (inputRequirements != null && !inputRequirements.isEmpty()) { List<Requirement> requires = CapReqBuilder.getRequirementsFrom(inputRequirements); resBuilder.addRequirements(requires); } return resBuilder.build(); }
Resource constructInputRequirements() throws Exception { ResourceBuilder resBuilder = new ResourceBuilder(); CapReqBuilder identity = new CapReqBuilder(IdentityNamespace.IDENTITY_NAMESPACE) .addAttribute(IdentityNamespace.IDENTITY_NAMESPACE, IDENTITY_INITIAL_RESOURCE); resBuilder.addCapability(identity); Parameters inputRequirements = new Parameters(properties.mergeProperties(Constants.RUNREQUIRES), project); if (inputRequirements != null && !inputRequirements.isEmpty()) { List<Requirement> requires = CapReqBuilder.getRequirementsFrom(inputRequirements); resBuilder.addRequirements(requires); } return resBuilder.build(); }