Package org.apache.geronimo.obr.model

Examples of org.apache.geronimo.obr.model.Resource


        if (symbolicName == null) {
            // not a bundle
            return null;           
        }
       
        Resource resource = new Resource();
        resource.setId(String.valueOf(System.currentTimeMillis()));
        resource.setSymbolicname(symbolicName.getName());
              
        // Convert bundle manifest header attributes to resource properties.
        convertAttributesToProperties(resource);
           
        // Convert Import-Package declarations into requirements.
View Full Code Here


            }

            BundleDescription desc = new BundleDescription(mf);
            ResourceBuilder builder = new ResourceBuilder(desc);

            Resource resource = null;
            try {
                resource = builder.createResource();
            } catch (RuntimeException e) {
                LOG.debug("Failed to generate OBR information for " + artifact + " artifact", e);
                continue;
            }

            if (resource != null) {
                resource.setUri(getURL(artifact));
                if (location.isFile()) {
                    resource.setSize(location.length());
                }
                repo.getResource().add(resource);
            } else {
                LOG.debug("Did not generate OBR information for {} artifact. It is not a bundle.", artifact);
            }
View Full Code Here

        if (symbolicName == null) {
            // not a bundle
            return null;           
        }
       
        Resource resource = new Resource();
        resource.setId(String.valueOf(System.currentTimeMillis()));
        resource.setSymbolicname(symbolicName.getName());
              
        // Convert bundle manifest header attributes to resource properties.
        convertAttributesToProperties(resource);
           
        // Convert Import-Package declarations into requirements.
View Full Code Here

            }

            BundleDescription desc = new BundleDescription(mf);
            ResourceBuilder builder = new ResourceBuilder(desc);

            Resource resource = null;
            try {
                resource = builder.createResource();
            } catch (RuntimeException e) {
                LOG.debug("Failed to generate OBR information for " + artifact + " artifact", e);
                continue;
            }

            if (resource != null) {
                resource.setUri(getURL(artifact));
                if (location.isFile()) {
                    resource.setSize(location.length());
                }
                repo.getResource().add(resource);
            } else {
                LOG.debug("Did not generate OBR information for {} artifact. It is not a bundle.", artifact);
            }
View Full Code Here

        if (symbolicName == null) {
            // not a bundle
            return null;           
        }
       
        Resource resource = new Resource();
        resource.setId(String.valueOf(System.currentTimeMillis()));
        resource.setSymbolicname(symbolicName.getName());
              
        // Convert bundle manifest header attributes to resource properties.
        convertAttributesToProperties(resource);
           
        // Convert Import-Package declarations into requirements.
View Full Code Here

            }

            BundleDescription desc = new BundleDescription(mf);
            ResourceBuilder builder = new ResourceBuilder(desc);

            Resource resource = builder.createResource();
            if (resource != null) {
                resource.setUri(getURL(artifact));
                if (location.isFile()) {
                    resource.setSize(location.length());
                }
                repo.getResource().add(resource);
            } else {
                LOG.debug("Artifact {} is not a bundle.", artifact);
            }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.obr.model.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.