setlocal

set env=%1
if not defined env (
    set env=
)
set startup=start_dev.bat

cd %env%
cd zookeeper\bin
call zkServer.cmd
cd ..\..
timeout /T 5

cd service-edf-component\bin
call %startup%
cd ..\..
timeout /T 10

cd service-edf-system\bin
call %startup%
cd ..\..
timeout /T 10

cd service-edf-business\bin
call %startup%
cd ..\..
timeout /T 10

cd service-ba\bin
call %startup%
cd ..\..
timeout /T 10

cd service-biz-core\bin
call %startup%
cd ..\..
timeout /T 10

rem cd service-biz-invoice\bin
rem call %startup%
rem cd ..\..
rem timeout /T 10

cd service-biz-scm\bin
call %startup%
cd ..\..
timeout /T 10

cd service-gl\bin
call %startup%
cd ..\..
timeout /T 20

cd service-gl-asset\bin
call %startup%
cd ..\..
timeout /T 10

cd service-report-converter\bin
call %startup%
cd ..\..
timeout /T 10

cd service-jchl-connector\bin
call %startup%
cd ..\..
timeout /T 10

cd nodejs\r-proxy\bin
call startup.bat
cd ..\..\..

endlocal