diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-12 07:15:01 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-12 07:15:01 +0000 |
commit | aa23e7ec0543eb18d086743311a889ac5f4e5134 (patch) | |
tree | fdbde3ca6da6e052238c7fcf35f02b17fd4a24e3 /java/sca/modules | |
parent | c6bb8781d2df39c4808f499cec6996753943d24c (diff) |
TUSCANY-3015: fix Ode initilization when file path name contains a space
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@773806 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules')
-rw-r--r-- | java/sca/modules/implementation-bpel-ode/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/EmbeddedODEServer.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/java/sca/modules/implementation-bpel-ode/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/EmbeddedODEServer.java b/java/sca/modules/implementation-bpel-ode/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/EmbeddedODEServer.java index 36bf4475bf..619643eaa3 100644 --- a/java/sca/modules/implementation-bpel-ode/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/EmbeddedODEServer.java +++ b/java/sca/modules/implementation-bpel-ode/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/EmbeddedODEServer.java @@ -20,6 +20,7 @@ package org.apache.tuscany.sca.implementation.bpel.ode; import java.io.File; +import java.net.URISyntaxException; import java.net.URL; import java.util.Map; import java.util.Properties; @@ -89,7 +90,11 @@ public class EmbeddedODEServer { URL dbLocation = getClass().getClassLoader().getResource("jpadb"); if (dbLocation == null) throw new ODEInitializationException("Couldn't find database in the classpath"); - _workRoot = new File(dbLocation.getFile()).getParentFile(); + try { + _workRoot = new File(dbLocation.toURI()).getParentFile(); + } catch (URISyntaxException e) { + throw new ODEInitializationException(e); + } initTxMgr(); initPersistence(); |