home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 July / CMCD0703.ISO / Software / Freeware / Programare / bugzero / WEB-INF / bin / bugzero.cmd next >
Encoding:
Text File  |  2003-05-14  |  1.3 KB  |  54 lines

  1. @REM This script has to be run inside the bin directory.
  2. @REM It is used to do the intial database related task of Bugzero.
  3.  
  4. @echo off
  5.  
  6. SETLOCAL
  7. title Bugzero Database Administration
  8.  
  9. pushd ..
  10.  
  11. if not exist data (
  12. if not exist classes (
  13. @echo on
  14. echo Can not find the data or classes directory
  15. echo Make sure this program is started in the bin directory it is located.
  16. @echo off
  17. pause
  18. exit
  19. ))
  20.  
  21. @REM Lines below enable this CMD to be run within dev environment
  22. SET CLASSPATH=.;data;classes
  23. if exist lib/classes        SET CLASSPATH=%CLASSPATH%;lib/classes
  24.  
  25. @REM add other jar or zip files inside lib
  26. set _LIBJARS=
  27. for %%i in (lib\*.*) do call bin\cpappend.bat %%i
  28.  
  29. SET CLASSPATH=%CLASSPATH%%_LIBJARS%
  30.  
  31. @echo on
  32. @REM If java is not in your path, specify the absolute path to java here
  33. @REM check the java version
  34. java -version
  35.  
  36. java -cp "%CLASSPATH%" com.websina.persistence.TableManager %1 %2
  37.  
  38. @echo off
  39.  
  40. IF %ERRORLEVEL% LEQ 1 goto okey
  41. @echo on
  42. @echo ////////////////////////////////////////////////////////////////////
  43. @echo You might not have Java installed or java is not in your system path.
  44. @echo Please install J2SE (JDK1.3 or later) from java.sun.com and add the bin
  45. @echo folder where the java command is located in the PATH.
  46. @echo Please read README for more details.
  47. @echo off
  48.  
  49. :okey
  50. popd
  51. pause
  52.  
  53. ENDLOCAL
  54.