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

Examples of org.osgi.impl.bundle.obr.resource.BundleInfo


        catch ( MalformedURLException e )
        {
            e.printStackTrace();
            throw new MojoExecutionException( "MalformedURLException" );
        }
        BundleInfo info = null;
        try
        {
            info = new BundleInfo( repository, new File( outFile ) );
        }
        catch ( Exception e )
        {
            e.printStackTrace();
            throw new MojoExecutionException( "Exception" );
        }

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


        if (path.getName().equals("repository.xml") || path.getName().equals(new File(repositoryFileName).getName())) {
            // 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

            if (path.getName().equals("repository.xml") || path.getName().equals(new File(repositoryFileName).getName())) {
                // 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

Related Classes of org.osgi.impl.bundle.obr.resource.BundleInfo

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.