shutdown-using-launcher.bat 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. @echo off
  2. if "%OS%" == "Windows_NT" setlocal
  3. rem ---------------------------------------------------------------------------
  4. rem
  5. rem Script for shutting down Catalina using the Launcher
  6. rem
  7. rem ---------------------------------------------------------------------------
  8. rem Get standard environment variables
  9. set PRG=%0
  10. if exist %PRG%\..\setenv.bat goto gotCmdPath
  11. rem %0 must have been found by DOS using the %PATH% so we assume that
  12. rem setenv.bat will also be found in the %PATH%
  13. call setenv.bat
  14. goto doneSetenv
  15. :gotCmdPath
  16. call %PRG%\..\setenv.bat
  17. :doneSetenv
  18. rem Make sure prerequisite environment variables are set
  19. if not "%JAVA_HOME%" == "" goto gotJavaHome
  20. echo The JAVA_HOME environment variable is not defined
  21. echo This environment variable is needed to run this program
  22. goto end
  23. :gotJavaHome
  24. rem Get command line arguments and save them with the proper quoting
  25. set CMD_LINE_ARGS=
  26. :setArgs
  27. if ""%1""=="""" goto doneSetArgs
  28. set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
  29. shift
  30. goto setArgs
  31. :doneSetArgs
  32. rem Execute the Launcher using the "catalina" target
  33. "%JAVA_HOME%\bin\java.exe" -classpath %PRG%\..;"%PATH%";. LauncherBootstrap -launchfile catalina.xml -verbose catalina %CMD_LINE_ARGS% stop
  34. :end