servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r752003 - /servicemix/maven-plugins/features-maven-plugin/trunk/src/main/java/org/apache/servicemix/tooling/features/GenerateFeaturesXmlMojo.java
Date Tue, 10 Mar 2009 07:12:11 GMT
Author: ffang
Date: Tue Mar 10 07:12:10 2009
New Revision: 752003

URL: http://svn.apache.org/viewvc?rev=752003&view=rev
Log:
[SMX4-242]feature maven plugin should add default version to feature when generate feature.xml

Modified:
    servicemix/maven-plugins/features-maven-plugin/trunk/src/main/java/org/apache/servicemix/tooling/features/GenerateFeaturesXmlMojo.java

Modified: servicemix/maven-plugins/features-maven-plugin/trunk/src/main/java/org/apache/servicemix/tooling/features/GenerateFeaturesXmlMojo.java
URL: http://svn.apache.org/viewvc/servicemix/maven-plugins/features-maven-plugin/trunk/src/main/java/org/apache/servicemix/tooling/features/GenerateFeaturesXmlMojo.java?rev=752003&r1=752002&r2=752003&view=diff
==============================================================================
--- servicemix/maven-plugins/features-maven-plugin/trunk/src/main/java/org/apache/servicemix/tooling/features/GenerateFeaturesXmlMojo.java
(original)
+++ servicemix/maven-plugins/features-maven-plugin/trunk/src/main/java/org/apache/servicemix/tooling/features/GenerateFeaturesXmlMojo.java
Tue Mar 10 07:12:10 2009
@@ -444,13 +444,15 @@
         }
 
         public void write(PrintStream out) {
-            out.println("  <feature name='" + artifact.getArtifactId() + "'>");
+            out.println("  <feature name='" + artifact.getArtifactId() + "' version='"
+            		+ artifact.getBaseVersion() + "'>");
             Set<Artifact> featureArtifacts = new HashSet<Artifact>();
             Set<Artifact> bundleArtifacts = new HashSet<Artifact>();
             
             for (Artifact next : artifacts) {
                 if (isFeature(next)) {
-                    out.println(String.format("    <feature>%s</feature>", next.getArtifactId()));
+                    out.println("    <feature version='"
+            		+ next.getBaseVersion() + "'>" + String.format("%s</feature>", next.getArtifactId()));
                 	featureArtifacts.addAll(features.get(next).artifacts);
                 } else {
                     bundleArtifacts.add(next);



Mime
View raw message