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 setlocal
if NOT "%ARTEMIS_INSTANCE%"=="" goto CHECK_ARTEMIS_INSTANCE if NOT "%ARTEMIS_INSTANCE%"=="" goto CHECK_ARTEMIS_INSTANCE
PUSHD . set ARTEMIS_INSTANCE="%~dp0.."
CD %~dp0..
set ARTEMIS_INSTANCE="%CD%"
POPD
:CHECK_ARTEMIS_INSTANCE :CHECK_ARTEMIS_INSTANCE
if exist %ARTEMIS_INSTANCE%\bin\artemis.cmd goto CHECK_JAVA if exist %ARTEMIS_INSTANCE%\bin\artemis.cmd goto CHECK_JAVA

View File

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