Package org.apache.felix.ipojo.manipulator.manifest

Examples of org.apache.felix.ipojo.manipulator.manifest.FileManifestProvider


        ManifestProvider manifestProvider;
        File selectedManifestFile;
        if (manifestFile != null) {
            if (manifestFile.isFile()) {
                try {
                    manifestProvider = new FileManifestProvider(manifestFile);
                    selectedManifestFile = manifestFile;
                } catch (IOException e) {
                    m_reporter.error("Cannot read Manifest from '" + manifestFile.getAbsolutePath() + "'");
                    return;
                }
            } else {
                m_reporter.error("The manifest file " + manifestFile.getAbsolutePath() + " does not exist");
                return;
            }
        } else {
            // If the manifest is not specified, the m_dir/META-INF/MANIFEST.MF is used.
            File metaInf = new File(directory, "META-INF");
            File original = new File(metaInf, "MANIFEST.MF");
            if (original.isFile()) {
                try {
                    manifestProvider = new FileManifestProvider(original);
                    selectedManifestFile = original;
                } catch (IOException e) {
                    m_reporter.error("Cannot read Manifest from '" + original.getAbsolutePath() + "'");
                    return;
                }
View Full Code Here

TOP

Related Classes of org.apache.felix.ipojo.manipulator.manifest.FileManifestProvider

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.