Package aQute.lib.osgi

Examples of aQute.lib.osgi.Resource


        Pattern[] patterns = getSourcePatterns(analyzer);

        for (Entry<String, Resource> entry : resources.entrySet()) {
            String path = entry.getKey();
            Resource resource = entry.getValue();

            boolean match = false;
            for (Pattern pattern : patterns) {
                if (pattern.matcher(path).matches()) {
                    match = true;
                    break;
                }
            }

            if (match) {
                try {
                    InputStream in = resource.openInputStream();
                    Set<CharSequence> set = analyze(in);
                    in.close();
                    for (Iterator<CharSequence> r = set.iterator(); r.hasNext();) {
                        String pack = (String) r.next();
                        if (!QN.matcher(pack).matches())
View Full Code Here

TOP

Related Classes of aQute.lib.osgi.Resource

Copyright © 2018 www.massapicom. 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.