Package aQute.bnd.header

Examples of aQute.bnd.header.Parameters.keySet()


      if (key.equals(INCLUDE_RESOURCE)) {
        // there are paths in there, collapse these so the IML files don't get mixed up on every machine. The built in macro manager
        // does not recognize these, so we have to do this manually here.
        Parameters parameters = OSGiHeader.parseHeader(value);

        for (String name : parameters.keySet()) {
          if (StringUtil.startsWithChar(name, '{') && name.endsWith("}")) {
            name = name.substring(1, name.length() - 1).trim();
          }

          String[] parts = name.split("\\s*=\\s*");
 
View Full Code Here


      return;
    }

    Parameters parameters = OSGiHeader.parseHeader(includeResourceHeader);
    StringBuilder sanitizedHeader = new StringBuilder();
    for (Iterator<String> iterator = parameters.keySet().iterator(); iterator.hasNext(); ) {
      String name = iterator.next();
      String prefix = "";
      String suffix = "";
      if (StringUtil.startsWithChar(name, '{') && name.endsWith("}")) {
        name = name.substring(1, name.length() - 1).trim();
View Full Code Here

        return types;
    }

    protected void process(List<XMLType> types, String resource, String paths, String pattern) throws Exception {
        Parameters map = Processor.parseHeader(paths, null);
        for ( String path : map.keySet() ) {
            types.add( new ClassPathImportsXmlType( getClass().getResource(resource), path, pattern ));
        }
    }

    private class ClassPathImportsXmlType extends XMLType {
View Full Code Here

                        if (ignore.length() == 0) {
                            LOG.debug("Ignoring all imports due to %s value of %s", ServiceConstants.INSTR_FAB_EXCLUDE_IMPORTS_PACKAGE, expression);
                            values.clear();
                        } else {
                            List<String> packageNames = new ArrayList<String>(values.keySet());
                            for (String packageName : packageNames) {
                                if (packageName.equals(ignore) || packageName.startsWith(ignore)) {
                                    if (LOG.isDebugEnabled()) {
                                        LOG.debug("Ignoring package " + packageName + " due to " + ServiceConstants.INSTR_FAB_EXCLUDE_IMPORTS_PACKAGE + " value of " + expression);
                                    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.