Examples of XmlFeaturesRepository


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

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

            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

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

                        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
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.