Package org.osgi.impl.bundle.obr.resource

Examples of org.osgi.impl.bundle.obr.resource.BundleInfo.build()


            throw new MojoExecutionException( "Exception" );
        }

        try
        {
            m_resource = info.build();
        }
        catch ( Exception e )
        {
            e.printStackTrace();
            throw new MojoExecutionException( "Exception" );
View Full Code Here


            // do not index our repository.xml, nor the file we are working on now.
            return;
        }
      if (path.getName().endsWith(".jar")) {
        BundleInfo info = new BundleInfo(repository, path);
        ResourceImpl resource = info.build();
        if (urlTemplate != null) {
          doTemplate(path, resource);
        }
                else {
                    resource.setURL(path.toURL());
View Full Code Here

                // do not index our repository.xml, nor the file we are working on now.
                return;
            }
            if (path.getName().endsWith(".jar")) {
                BundleInfo info = new BundleInfo(repository, path);
                ResourceImpl resource = info.build();
                if (urlTemplate != null) {
                    doTemplate(path, resource);
                }
                else {
                    resource.setURL(path.toURI().toURL());
View Full Code Here

    try (InputStream is = item.getInputStream()) {
      if (is != null) {
        final RepositoryItemUid uid = item.getRepositoryItemUid();
        final BundleInfo info = new BundleInfo(null, is, "file:" + uid.getPath(), item.getLength());
        if (info.isOSGiBundle()) {
          return info.build();
        }
      }
    }
    catch (final Exception e) {
      log.warn("Unable to generate OBR metadata for item {}", item.getRepositoryItemUid(), e);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.