@REM
@REM (c) 2003-2020 MuleSoft, Inc. This software is protected under international copyright
@REM law. All use of this software is subject to MuleSoft's Master Subscription Agreement
@REM (or other master license agreement) separately entered into in writing between you and
@REM MuleSoft. If such an agreement is not in place, you may not use the software.
@REM

@echo off
setlocal
rem %~dp0 is location of current script under NT
set REALPATH=%~dp0
set BASE_DIR=%REALPATH:~0,-6%

IF NOT EXIST "%BASE_DIR%\tools" mkdir "%BASE_DIR%\tools"
IF EXIST "%BASE_DIR%\bin\support-tools-installer-4.8.0-mule-ic-custom-dev-runtime-SNAPSHOT-final.jar" move "%BASE_DIR%\bin\support-tools-installer-4.8.0-mule-ic-custom-dev-runtime-SNAPSHOT-final.jar" "%BASE_DIR%\tools"
java -jar "%BASE_DIR%\tools\support-tools-installer-4.8.0-mule-ic-custom-dev-runtime-SNAPSHOT-final.jar" %*
