home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-tomcat-addon-1.4.9-installer.exe / shutdown-using-launcher.bat < prev    next >
Encoding:
DOS Batch File  |  2004-08-28  |  1.2 KB  |  41 lines

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