home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / httpd-rb.zip / httpd-rb.cmd < prev    next >
OS/2 REXX Batch file  |  1999-10-12  |  888b  |  25 lines

  1. /*******************************
  2. * Rolf Breuning, 1999/09/05 
  3. * Java Http Server start script for OS/2
  4. *******************************
  5. * Precondition: 
  6. *   Your java environment should be available on the path.
  7. *   I.e. executing jre.exe on the command line should display
  8. *   JRE version and options
  9. *******************************
  10. * Settings start: 
  11. *******************************/
  12.  
  13. parse source . . cmd; cmdDir = left( cmd, lastpos( '\', cmd ) - 1 )
  14. /* The full path name of the server directory, excluding the trailing '\' */
  15. servDir = cmdDir
  16. /* Port number for the server */
  17. servPort = 8081
  18.  
  19. /*******************************
  20. * Settings end
  21. *******************************/
  22. cp = servDir'/httpd.jar;'servDir'/collections.jar;'servDir'/collecti.jar'
  23. 'jre -cp 'cp' -Drb.httpd.directory='servDir' -Drb.log.file='servDir'/httpd.log rb.httpd.HttpServer 'servPort
  24.  
  25.