startup-using-launcher.bat 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. @echo off
  2. if "%OS%" == "Windows_NT" setlocal
  3. rem ---------------------------------------------------------------------------
  4. rem
  5. rem Script for starting 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. goto doneSetenv
  14. :gotCmdPath
  15. call %PRG%\..\setenv.bat
  16. :doneSetenv
  17. rem Make sure prerequisite environment variables are set
  18. if not "%JAVA_HOME%" == "" goto gotJavaHome
  19. echo The JAVA_HOME environment variable is not defined
  20. echo This environment variable is needed to run this program
  21. goto end
  22. :gotJavaHome
  23. rem Get command line arguments and save them with the proper quoting
  24. set CMD_LINE_ARGS=
  25. :setArgs
  26. if ""%1""=="""" goto doneSetArgs
  27. set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
  28. shift
  29. goto setArgs
  30. :doneSetArgs
  31. rem Execute the Launcher using the "catalina" target
  32. "%JAVA_HOME%\bin\java.exe" -classpath %PRG%\..;"%PATH%";. LauncherBootstrap -launchfile catalina.xml -verbose catalina %CMD_LINE_ARGS% start
  33. :end