geronimo-xbean-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1389876 - /geronimo/xbean/trunk/maven-xbean-plugin/src/main/java/org/apache/xbean/maven/XBeanMojo.java
Date Tue, 25 Sep 2012 14:22:31 GMT
Author: chirino
Date: Tue Sep 25 14:22:30 2012
New Revision: 1389876

URL: http://svn.apache.org/viewvc?rev=1389876&view=rev
Log:
Add support to the xbean maven mojo to 'include' multiple additional class 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=1389876&r1=1389875&r2=1389876&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 14:22:30 2012
@@ -92,6 +92,11 @@ public class XBeanMojo extends AbstractM
     /**
      * @parameter
      */
+    private List<String> classPathIncludes;
+
+    /**
+     * @parameter
+     */
     private String excludedClasses;
 
     /**
@@ -262,6 +267,15 @@ public class XBeanMojo extends AbstractM
                                 + " to classpath");
                 urls.add(classPathElement.getFile().toURL());
             }
+
+            if( classPathIncludes!=null ) {
+                for (String include : classPathIncludes) {
+                    final URL url = new File(include).toURL();
+                    getLog().debug("Adding to classpath : " + url);
+                    urls.add(url);
+                }
+            }
+
             URLClassLoader appClassloader = new URLClassLoader(urls.toArray(new URL[urls.size()]),

                     this.getClass().getClassLoader());
             return appClassloader;



Mime
View raw message