Package org.apache.felix.ipojo.manipulator.store

Examples of org.apache.felix.ipojo.manipulator.store.DirectoryResourceStore


                m_reporter.error("The manifest file " + original.getAbsolutePath() + " does not exist");
                return;
            }
        }

        DirectoryResourceStore store;
        if (directory.exists() && directory.isDirectory()) {
            store = new DirectoryResourceStore(directory);
            File webinf = new File(directory, "WEB-INF");
            if (directory.getName().endsWith(".war") || webinf.isDirectory()) {
                // this is a war file, use the right mapper
                store.setResourceMapper(new WABResourceMapper());
            }
            store.setManifest(manifestProvider.getManifest());
            store.setManifestFile(selectedManifestFile);
            DefaultManifestBuilder dmb = new DefaultManifestBuilder();
            dmb.setMetadataRenderer(new MetadataRenderer());
            store.setManifestBuilder(dmb);
        } else {
            m_reporter.error("The directory " + directory.getAbsolutePath() + " does not exist or is not a directory.");
            return;
        }
View Full Code Here

TOP

Related Classes of org.apache.felix.ipojo.manipulator.store.DirectoryResourceStore

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.