geronimo-xbean-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1389849 - /geronimo/xbean/trunk/maven-xbean-plugin/src/main/java/org/apache/xbean/maven/XBeanMojo.java
Date Tue, 25 Sep 2012 13:03:18 GMT
Author: chirino
Date: Tue Sep 25 13:03:17 2012
New Revision: 1389849

URL: http://svn.apache.org/viewvc?rev=1389849&view=rev
Log:
Add support to the xbean maven mojo to 'include' multiple additional source directories

Modified:
    geronimo/xbean/trunk/maven-xbean-plugin/src/main/java/org/apache/xbean/maven/XBeanMojo.java

Modified: geronimo/xbean/trunk/maven-xbean-plugin/src/main/java/org/apache/xbean/maven/XBeanMojo.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/maven-xbean-plugin/src/main/java/org/apache/xbean/maven/XBeanMojo.java?rev=1389849&r1=1389848&r2=1389849&view=diff
==============================================================================
--- geronimo/xbean/trunk/maven-xbean-plugin/src/main/java/org/apache/xbean/maven/XBeanMojo.java
(original)
+++ geronimo/xbean/trunk/maven-xbean-plugin/src/main/java/org/apache/xbean/maven/XBeanMojo.java
Tue Sep 25 13:03:17 2012
@@ -87,6 +87,11 @@ public class XBeanMojo extends AbstractM
     /**
      * @parameter
      */
+    private List<String> includes;
+
+    /**
+     * @parameter
+     */
     private String excludedClasses;
 
     /**
@@ -170,6 +175,11 @@ public class XBeanMojo extends AbstractM
             Set<Artifact> dependencies = project.getDependencyArtifacts();
             List<File> sourceJars = new ArrayList<File>();
             sourceJars.add(srcDir);
+            if( includes !=null ) {
+                for (String src : includes) {
+                    sourceJars.add(new File(src));
+                }
+            }
             for (Artifact dependency : dependencies) {
                 if ("sources".equals(dependency.getClassifier())) {
                     File file = dependency.getFile();



Mime
View raw message