+
+ private Set<Artifact> readFeatureCfg() throws ArtifactResolutionException {
+ Set<Artifact> artifacts = new LinkedHashSet<Artifact>();
+ File file = new File(localRepo.getParentFile().toString() + "/etc/org.apache.karaf.features.cfg");
+ Properties prop = new Properties();
+ try {
+ prop.load(new FileInputStream(file));
+ String featuresRepositories = prop.getProperty("featuresRepositories");
+ List<String> result = Arrays.asList(featuresRepositories.split(","));
+ for(String mvnUrl: result) {
+ artifacts.add(aetherUtil.resolveArtifact(FeatureUtil.toCoord(new URL(mvnUrl))));
+ }
+ } catch (FileNotFoundException e) {
+ getLog().info("Could not find properties file: " + file.getAbsolutePath());
+ } catch (IOException e) {
+ getLog().info("Could not read properties file: " + file.getAbsolutePath());
+ }
+
+ return artifacts;
+ }