You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by ke...@apache.org on 2009/04/15 21:15:37 UTC

svn commit: r765313 - in /openejb/branches/openejb-3.0.x: container/openejb-core/src/main/java/org/apache/openejb/config/WebModule.java pom.xml

Author: kevan
Date: Wed Apr 15 19:15:36 2009
New Revision: 765313

URL: http://svn.apache.org/viewvc?rev=765313&view=rev
Log:
OPENEJB-1005 fix file separator isse on Windows

Modified:
    openejb/branches/openejb-3.0.x/container/openejb-core/src/main/java/org/apache/openejb/config/WebModule.java
    openejb/branches/openejb-3.0.x/pom.xml

Modified: openejb/branches/openejb-3.0.x/container/openejb-core/src/main/java/org/apache/openejb/config/WebModule.java
URL: http://svn.apache.org/viewvc/openejb/branches/openejb-3.0.x/container/openejb-core/src/main/java/org/apache/openejb/config/WebModule.java?rev=765313&r1=765312&r2=765313&view=diff
==============================================================================
--- openejb/branches/openejb-3.0.x/container/openejb-core/src/main/java/org/apache/openejb/config/WebModule.java (original)
+++ openejb/branches/openejb-3.0.x/container/openejb-core/src/main/java/org/apache/openejb/config/WebModule.java Wed Apr 15 19:15:36 2009
@@ -48,7 +48,7 @@
     public WebModule(WebApp webApp, String contextRoot, ClassLoader classLoader, String jarLocation, String moduleId) {
         this.webApp = webApp;
         if (contextRoot == null) {
-            contextRoot = jarLocation.substring(jarLocation.lastIndexOf('/'));
+            contextRoot = jarLocation.substring(jarLocation.lastIndexOf(System.getProperty("file.separator")));
             if (contextRoot.endsWith(".unpacked")) {
                 contextRoot = contextRoot.substring(0, contextRoot.length() - ".unpacked".length());
             }

Modified: openejb/branches/openejb-3.0.x/pom.xml
URL: http://svn.apache.org/viewvc/openejb/branches/openejb-3.0.x/pom.xml?rev=765313&r1=765312&r2=765313&view=diff
==============================================================================
--- openejb/branches/openejb-3.0.x/pom.xml (original)
+++ openejb/branches/openejb-3.0.x/pom.xml Wed Apr 15 19:15:36 2009
@@ -34,7 +34,7 @@
   <name>OpenEJB</name>
   <packaging>pom</packaging>
 
-  <version>3.0.1</version>
+  <version>3.0.2-SNAPSHOT</version>
 
   <description>
     Apache OpenEJB is an open source, modular, configurable and extendable EJB Container System and EJB Server.