[Red5devs] [PATCH] Make .sh startup files for red5 work under Cygwin
Art Clarke
aclarke at vlideshow.com
Thu Jul 10 14:49:58 PDT 2008
Cygwin is an "almost" unix like environment, but the trick is "almost". It
still has to use the Windows Java version, and the Windows Java version uses
semi-colons, not colons, as a CLASSPATH separator. Hence if you run the .sh
files included in tip-of-tree on Cygwin, you'll get a failure to find
classes in your classpath.
As a result, all the .sh files fail under cygwin; although the .bat files
work. The downside of running the .bat files though sh is that killing the
red5.bat process is interactive (i.e. it asks you "Terminate batch job
(Y/N)" after you've killed the process).
Attached is a fix that detects if the OS is Cygwin, and changes the
classpath separator to ';' instead of ';'. It introduces a dependency on
'uname' in the path of the running process -- usually a safe bet on most
Unix systems.
If folks think it's useful, apply it. If not, no sweat -- this is just us
submitting all of our Red5 patches to the community.
Questions welcome.
- Art
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5devs_osflash.org/attachments/20080710/a48838bd/attachment.html
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diff.txt
Url: http://osflash.org/pipermail/red5devs_osflash.org/attachments/20080710/a48838bd/attachment.txt
More information about the Red5devs
mailing list