[rhmessaging-commits] rhmessaging commits: r3326 - store/branches/java/0.5-release/bin.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Thu Apr 23 13:58:58 EDT 2009


Author: ritchiem
Date: 2009-04-23 13:58:57 -0400 (Thu, 23 Apr 2009)
New Revision: 3326

Modified:
   store/branches/java/0.5-release/bin/qpid-server-bdb.bat
Log:
Added defaulting of QPID_HOME
merged from trunk r3325

Modified: store/branches/java/0.5-release/bin/qpid-server-bdb.bat
===================================================================
--- store/branches/java/0.5-release/bin/qpid-server-bdb.bat	2009-04-23 17:57:06 UTC (rev 3325)
+++ store/branches/java/0.5-release/bin/qpid-server-bdb.bat	2009-04-23 17:58:57 UTC (rev 3326)
@@ -19,6 +19,22 @@
 
 set VERSION=0.5
 
+rem Guess QPID_HOME if not defined
+set CURRENT_DIR=%cd%
+if not "%QPID_HOME%" == "" goto gotHome
+set QPID_HOME=%CURRENT_DIR%
+echo %QPID_HOME%
+if exist "%QPID_HOME%\bin\qpid-server.bat" goto okHome
+cd ..
+set QPID_HOME=%cd%
+cd %CURRENT_DIR%
+:gotHome
+if exist "%QPID_HOME%\bin\qpid-server.bat" goto okHome
+echo The QPID_HOME environment variable is not defined correctly
+echo This environment variable is needed to run this program
+goto end
+:okHome
+
 set BDBSTORE_HOME=%QPID_HOME%
 
 set QPID_MODULE_JARS=%BDBSTORE_HOME%\lib\qpid-bdbstore-%VERSION%.jar;%BDBSTORE_HOME%\lib\je-3.3.62.jar




More information about the rhmessaging-commits mailing list