servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r638190 - /servicemix/smx4/kernel/trunk/testing/features-maven-plugin/src/main/java/org/apache/servicemix/tooling/features/GenerateFeaturesFileMojo.java
Date Tue, 18 Mar 2008 03:33:50 GMT
Author: jstrachan
Date: Mon Mar 17 20:33:49 2008
New Revision: 638190

URL: http://svn.apache.org/viewvc?rev=638190&view=rev
Log:
added features.xml artifact

Modified:
    servicemix/smx4/kernel/trunk/testing/features-maven-plugin/src/main/java/org/apache/servicemix/tooling/features/GenerateFeaturesFileMojo.java

Modified: servicemix/smx4/kernel/trunk/testing/features-maven-plugin/src/main/java/org/apache/servicemix/tooling/features/GenerateFeaturesFileMojo.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/kernel/trunk/testing/features-maven-plugin/src/main/java/org/apache/servicemix/tooling/features/GenerateFeaturesFileMojo.java?rev=638190&r1=638189&r2=638190&view=diff
==============================================================================
--- servicemix/smx4/kernel/trunk/testing/features-maven-plugin/src/main/java/org/apache/servicemix/tooling/features/GenerateFeaturesFileMojo.java
(original)
+++ servicemix/smx4/kernel/trunk/testing/features-maven-plugin/src/main/java/org/apache/servicemix/tooling/features/GenerateFeaturesFileMojo.java
Mon Mar 17 20:33:49 2008
@@ -33,8 +33,10 @@
  *
  * @version $Revision: 1.1 $
  * @goal generate-features-file
- * @phase generate-resources
+ * @phase compile
+ * @execute phase="compile"
  * @requiresDependencyResolution runtime
+ * @inheritByDefault true
  * @description Generates the features XML file
  */
 public class GenerateFeaturesFileMojo extends MojoSupport {
@@ -60,6 +62,9 @@
             PrintStream printer = new PrintStream(out);
             populateProperties(printer);
             getLog().info("Created: " + outputFile);
+
+            // now lets attach it
+            projectHelper.attachArtifact(project, "features.xml", null, outputFile);
         }
         catch (Exception e) {
             throw new MojoExecutionException(



Mime
View raw message