You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2007/06/28 17:55:28 UTC

svn commit: r551604 - /incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateServiceUnitDescriptorMojo.java

Author: gnodet
Date: Thu Jun 28 08:55:27 2007
New Revision: 551604

URL: http://svn.apache.org/viewvc?view=rev&rev=551604
Log:
SM-956: Enhance jbi-maven-plugin to allow the use of a custom ServiceUnitAnalyzer
Patch provided by Eduardo Burgos, thx !

Modified:
    incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateServiceUnitDescriptorMojo.java

Modified: incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateServiceUnitDescriptorMojo.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateServiceUnitDescriptorMojo.java?view=diff&rev=551604&r1=551603&r2=551604
==============================================================================
--- incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateServiceUnitDescriptorMojo.java (original)
+++ incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateServiceUnitDescriptorMojo.java Thu Jun 28 08:55:27 2007
@@ -63,6 +63,13 @@
     private Boolean useServiceUnitAnalyzer = Boolean.TRUE;
 
     /**
+     * Specifies a serviceUnitAnalyzer class name (optional)
+     * 
+     * @parameter
+     */
+    private String serviceUnitAnalyzerClass;
+
+    /**
      * Fail if the descriptor generation fails
      * 
      * @parameter
@@ -211,6 +218,9 @@
             return JbiServiceFileAnalyzer.class.getCanonicalName();
         }
         if (useServiceUnitAnalyzer.booleanValue()) {
+            if (serviceUnitAnalyzerClass != null) {
+                return serviceUnitAnalyzerClass;
+            }
             MavenProject project = getComponentProject();
             if (project != null) {
                 List plugins = project.getBuild().getPlugins();