diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2010-02-15 17:35:09 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2010-02-15 17:35:09 +0000 |
commit | 675977cdac1e00546d0919d0f2fa6e107bc88ae4 (patch) | |
tree | 22eb95e24356daaf22a38f5af5b8cba6608d8eb9 | |
parent | cd1b9daec08ed9da5c8b22ecdddfefb7c674dc4e (diff) |
Fixing mispelled environment variable name used to provide ODE Runtime DB path
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@910276 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | sca-java-2.x/trunk/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/EmbeddedODEServer.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sca-java-2.x/trunk/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/EmbeddedODEServer.java b/sca-java-2.x/trunk/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/EmbeddedODEServer.java index 7c71ab3cbc..e0eed7e440 100644 --- a/sca-java-2.x/trunk/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/EmbeddedODEServer.java +++ b/sca-java-2.x/trunk/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/EmbeddedODEServer.java @@ -69,6 +69,8 @@ import org.eclipse.core.runtime.FileLocator; * @version $Rev$ $Date$ */ public class EmbeddedODEServer { + private static final String TUSCANY_IMPL_BPEL_DBLOCATION = "TUSCANY_IMPL_BPEL_DBLOCATION"; + protected final Log __log = LogFactory.getLog(getClass()); private boolean _initialized; @@ -152,19 +154,19 @@ public class EmbeddedODEServer { URL dbLocation = null; // An environment variable to set the path to the DB - String dbFile = System.getenv("TUSCANY_IMPL_BPEL_DBLOCATION"); + String dbFile = System.getenv(TUSCANY_IMPL_BPEL_DBLOCATION); if( dbFile != null ) { try { locationFile = new File(dbFile).getParentFile(); } catch (Exception e ) { - System.out.println("Environment variable TUSCANY_IMPL_BPEL_LOCATION has the wrong format: " + dbFile); + System.out.println("Environment variable " + TUSCANY_IMPL_BPEL_DBLOCATION + " has the wrong format: " + dbFile); System.out.println("Exception is: " + e.getClass().toString() + " " + e.getMessage()); } // end try } else { dbLocation = getClass().getClassLoader().getResource("jpadb"); if (dbLocation == null) { throw new ODEInitializationException("Couldn't find database in the classpath:" + - " try setting the TUSCANY_IMPL_BPEL_LOCATION environment variable"); + " try setting the " + TUSCANY_IMPL_BPEL_DBLOCATION + " environment variable"); } // Handle OSGI bundle case if( dbLocation.getProtocol() == "bundleresource" ) { |