Package org.apache.karaf.eik.core.features

Examples of org.apache.karaf.eik.core.features.XmlFeaturesRepository


                final List<FeaturesRepository> featuresRepositories = new ArrayList<FeaturesRepository>();
                final IResource[] resources = featuresFolder.members();
                for (final IResource resource : resources) {
                    if (resource.getFileExtension().equalsIgnoreCase("xml")) {
                        fin = new FileInputStream(resource.getRawLocation().toFile());
                        final XmlFeaturesRepository xmlFeatureRepository = new XmlFeaturesRepository(resource.getName(), fin);
                        featuresRepositories.add(xmlFeatureRepository);
                        fin.close();
                    }
                }
View Full Code Here


            final IResource[] resources = featuresFolder.members();

            for (final IResource featureFileResource : resources) {
                if (featureFileResource.getFullPath().getFileExtension().equals("xml")) {
                    fin = new FileInputStream(featureFileResource.getRawLocation().toFile());
                    featuresRepository.add(new XmlFeaturesRepository(featureFileResource.getName(), fin));
                    fin.close();
                } else {
                    // TODO: What to do here?
                }
            }
View Full Code Here

                        stream = new URL(repository).openStream();

                        repositoryName = repository;
                    }

                    final FeaturesRepository newRepo = new XmlFeaturesRepository(repositoryName, stream);
                    featuresRepositories.add(newRepo);

                    monitor.worked(1);

                } catch (final MalformedURLException e) {
View Full Code Here

TOP

Related Classes of org.apache.karaf.eik.core.features.XmlFeaturesRepository

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.