You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by an...@apache.org on 2011/01/16 07:16:51 UTC
svn commit: r1059497 -
/karaf/trunk/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/AddFeaturesToRepoMojo.java
Author: anierbeck
Date: Sun Jan 16 06:16:51 2011
New Revision: 1059497
URL: http://svn.apache.org/viewvc?rev=1059497&view=rev
Log:
[KARAF-393] - Ability to use features-maven-plugin:add-features-to-repo with explicitly specified remote maven repositories, patch provided by Sergey Zhemzhitsky
Modified:
karaf/trunk/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/AddFeaturesToRepoMojo.java
Modified: karaf/trunk/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/AddFeaturesToRepoMojo.java
URL: http://svn.apache.org/viewvc/karaf/trunk/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/AddFeaturesToRepoMojo.java?rev=1059497&r1=1059496&r2=1059497&view=diff
==============================================================================
--- karaf/trunk/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/AddFeaturesToRepoMojo.java (original)
+++ karaf/trunk/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/AddFeaturesToRepoMojo.java Sun Jan 16 06:16:51 2011
@@ -113,6 +113,12 @@ public class AddFeaturesToRepoMojo exten
featuresMap.put(f.getName(), f);
}
}
+
+ // no features specified, handle all of them
+ if(features == null) {
+ features = new ArrayList<String>(featuresMap.keySet());
+ }
+
Set<String> featuresBundles = new HashSet<String>();
Set<String> transitiveFeatures = new HashSet<String>();
addFeatures(features, featuresBundles, transitiveFeatures, featuresMap);