From 675977cdac1e00546d0919d0f2fa6e107bc88ae4 Mon Sep 17 00:00:00 2001 From: lresende Date: Mon, 15 Feb 2010 17:35:09 +0000 Subject: 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 --- .../tuscany/sca/implementation/bpel/ode/EmbeddedODEServer.java | 8 +++++--- 1 file 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" ) { -- cgit v1.2.3