Package org.apache.ace.obr.metadata.util

Examples of org.apache.ace.obr.metadata.util.ResourceMetaData


                resources.add(resource);
            }
            else {
                // this is some other resource, we might want to include it.
                if (all) {
                    ResourceMetaData metadata = ResourceMetaData.getArtifactMetaData(path.getName());
                    ResourceImpl impl = new ResourceImpl(repository, metadata.getSymbolicName(), new VersionRange(metadata.getVersion()));
                    impl.setURL(path.toURI().toURL());
                    resources.add(impl);
                }
            }
        }
View Full Code Here


        if (fileName == null) {
            fileName = "";
        }
        File tempFile = downloadToTempFile(data);

        ResourceMetaData metaData = ResourceMetaData.getBundleMetaData(tempFile);
        if (metaData == null) {
            metaData = ResourceMetaData.getArtifactMetaData(fileName);
        }
        if (metaData == null) {
            throw new IOException("Not a valid bundle and no filename found (filename = " + fileName + ")");
View Full Code Here

TOP

Related Classes of org.apache.ace.obr.metadata.util.ResourceMetaData

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.