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 / digest.bat < prev    next >
Encoding:
DOS Batch File  |  2004-08-28  |  1.3 KB  |  42 lines

  1. @echo off
  2. if "%OS%" == "Windows_NT" setlocal
  3. rem ---------------------------------------------------------------------------
  4. rem Script to digest password using the algorithm specified
  5. rem
  6. rem $Id: digest.bat,v 1.3 2002/08/04 18:19:43 patrickl Exp $
  7. rem ---------------------------------------------------------------------------
  8.  
  9. rem Guess CATALINA_HOME if not defined
  10. if not "%CATALINA_HOME%" == "" goto gotHome
  11. set CATALINA_HOME=.
  12. if exist "%CATALINA_HOME%\bin\tool-wrapper.bat" goto okHome
  13. set CATALINA_HOME=..
  14. :gotHome
  15. if exist "%CATALINA_HOME%\bin\tool-wrapper.bat" goto okHome
  16. echo The CATALINA_HOME environment variable is not defined correctly
  17. echo This environment variable is needed to run this program
  18. goto end
  19. :okHome
  20.  
  21. set EXECUTABLE=%CATALINA_HOME%\bin\tool-wrapper.bat
  22.  
  23. rem Check that target executable exists
  24. if exist "%EXECUTABLE%" goto okExec
  25. echo Cannot find %EXECUTABLE%
  26. echo This file is needed to run this program
  27. goto end
  28. :okExec
  29.  
  30. rem Get remaining unshifted command line arguments and save them in the
  31. set CMD_LINE_ARGS=
  32. :setArgs
  33. if ""%1""=="""" goto doneSetArgs
  34. set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
  35. shift
  36. goto setArgs
  37. :doneSetArgs
  38.  
  39. call "%EXECUTABLE%" -server org.apache.catalina.realm.RealmBase %CMD_LINE_ARGS%
  40.  
  41. :end
  42.