geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwo...@apache.org
Subject svn commit: r1101801 - /geronimo/server/trunk/plugins/jaxws/geronimo-jaxws-builder/src/main/java/org/apache/geronimo/jaxws/builder/wsdl/WsdlGeneratorUtils.java
Date Wed, 11 May 2011 09:39:22 GMT
Author: rwonly
Date: Wed May 11 09:39:21 2011
New Revision: 1101801

URL: http://svn.apache.org/viewvc?rev=1101801&view=rev
Log:
GERONIMO-5956 issues when deploy a standalone ejb web services

Modified:
    geronimo/server/trunk/plugins/jaxws/geronimo-jaxws-builder/src/main/java/org/apache/geronimo/jaxws/builder/wsdl/WsdlGeneratorUtils.java

Modified: geronimo/server/trunk/plugins/jaxws/geronimo-jaxws-builder/src/main/java/org/apache/geronimo/jaxws/builder/wsdl/WsdlGeneratorUtils.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/jaxws/geronimo-jaxws-builder/src/main/java/org/apache/geronimo/jaxws/builder/wsdl/WsdlGeneratorUtils.java?rev=1101801&r1=1101800&r2=1101801&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/jaxws/geronimo-jaxws-builder/src/main/java/org/apache/geronimo/jaxws/builder/wsdl/WsdlGeneratorUtils.java
(original)
+++ geronimo/server/trunk/plugins/jaxws/geronimo-jaxws-builder/src/main/java/org/apache/geronimo/jaxws/builder/wsdl/WsdlGeneratorUtils.java
Wed May 11 09:39:21 2011
@@ -55,8 +55,13 @@ public class WsdlGeneratorUtils {
 
     public static void getModuleClasspath(DeploymentContext deploymentContext, LinkedHashSet<URL>
classpath) throws Exception {
         File configurationBaseDir = deploymentContext.getBaseDir();
-        for (String bundleClassPath : deploymentContext.getBundleClassPath()) {
-            classpath.add(new File(configurationBaseDir, bundleClassPath).toURI().toURL());
+        if (deploymentContext.getBundleClassPath() == null || deploymentContext.getBundleClassPath().isEmpty()){
+            // the default bundle class path is the root of the bundle if no bundle-classpath
specified.
+            classpath.add(configurationBaseDir.toURI().toURL());
+        } else {
+            for (String bundleClassPath : deploymentContext.getBundleClassPath()) {
+                classpath.add(new File(configurationBaseDir, bundleClassPath).toURI().toURL());
+            }
         }
     }
 



Mime
View raw message