fix ARTEMIS_HOME check in Windows batch script

This commit is contained in:
Derek Wickern 2018-01-30 11:34:13 -08:00 committed by Howard Gao
parent 274e67d67a
commit 17ebf2dbaa
2 changed files with 2 additions and 8 deletions

View File

@ -19,10 +19,7 @@ rem under the License.
setlocal
if NOT "%ARTEMIS_INSTANCE%"=="" goto CHECK_ARTEMIS_INSTANCE
PUSHD .
CD %~dp0..
set ARTEMIS_INSTANCE="%CD%"
POPD
set ARTEMIS_INSTANCE="%~dp0.."
:CHECK_ARTEMIS_INSTANCE
if exist %ARTEMIS_INSTANCE%\bin\artemis.cmd goto CHECK_JAVA

View File

@ -19,10 +19,7 @@ rem under the License.
setlocal
if NOT "%ARTEMIS_HOME%"=="" goto CHECK_ARTEMIS_HOME
PUSHD .
CD %~dp0..
set ARTEMIS_HOME="%CD%"
POPD
set ARTEMIS_HOME="%~dp0.."
:CHECK_ARTEMIS_HOME
if exist %ARTEMIS_HOME%\bin\artemis.cmd goto CHECK_JAVA