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 / startup-using-launcher.bat < prev    next >
Encoding:
DOS Batch File  |  2004-08-28  |  1.2 KB  |  40 lines

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