home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wsgatsam.zip / install / WSGWinstallDS.bat < prev    next >
DOS Batch File  |  2003-02-24  |  2KB  |  53 lines

  1. @title Creating Datasource - IBM WebServices Gateway
  2.  
  3. @rem parameters are 1=Gateway install directory (typically C:\WebSphere\WSGW)
  4. @rem                2=node name 
  5. @rem                3=WebSphere AppServer directory (typically WebSphere\AppServer)
  6. @rem                4=DB2 userid
  7. @rem                5=DB2 password         
  8.  
  9. @if .%1==. goto invalidparams
  10. @if .%2==. goto invalidparams
  11. @if .%3==. goto invalidparams
  12. @if .%4==. goto invalidparams
  13. @if .%5==. goto invalidparams
  14.  
  15. @rem Check parameter 1 is a valid directory.
  16. @if EXIST %1 goto goodparam1
  17. @echo The directory %1 specified for Gateway install directory does not exist.
  18. @goto invalidparams
  19.  
  20. @rem Check parameter 3 is a valid directory.
  21. :goodparam1
  22. @if EXIST %3 goto goodparams
  23. @echo The directory %3 specified for WebSphere AppServer directory does not exist.
  24. @goto invalidparams
  25.  
  26. @rem Parameters are good.
  27. :goodparams
  28. @echo The WebServices Gateway datasource will be installed
  29. @echo The WebSphere Admin Server will then be recycled
  30. @echo There may be a slight delay while the Admin Server restarts
  31.          
  32. @call %1\install\installDS.bat %1 %2 %3 %4 %5 > %3\logs\WSGWinstallDS.log 2>&1
  33. @if errorlevel 0 goto InstallWorked
  34.  
  35. @echo.
  36. @echo Warning: an error might have occurred during the installation of the WebServices Gateway.
  37. @echo Please check the WSGWInstallDS.log file in the \logs subdirectory 
  38. @echo of the WebServices Gateway install directory.
  39. @echo.
  40. @goto :eof
  41.  
  42. :InstallWorked
  43. @echo The WebServices Gateway datasource has been installed
  44. @goto :eof
  45.          
  46. :invalidparams
  47. @echo This command file requires 5 parameters
  48. @echo Parameters are 1=Gateway install directory (typically C:\WebSphere\WSGW)
  49. @echo                2=node name 
  50. @echo                3=WebSphere AppServer directory (typically WebSphere\AppServer)
  51. @echo                4=DB2 userid
  52. @echo                5=DB2 password         
  53.