mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
de8bedf312
Subject: Embedding the shell Date: Wed, 8 Sep 1999 16:01:44 -0400 From: "Kurt Westerfeld" <kurt@westerfeld.com> To: "Norris Boyd" <norris@netscape.com> Norris, please find the attached zip file containing the (minor) modifications to the Rhino shell module that enables the shell to be embedded in a host application. There are two areas of change to be concerned about: 1. Any and all references to System.in/out/err have been modified to use Main.in/out/err, which default to System.in/out/err. Methods to do a setIn, setOut, and setErr were added. Note that in/out/err on Main were made static public, so that the jikes compiler wouldn't complain (I had them as static protected, but when accessed outside of the package, a warning was issued). 2. The global and sharedGlobal static variables were made protected so that my app can make use of them (to add extensions after an initial pass through main()). That's it. I have successfully used the facility to drop a remote telnet server into the shell interpreter, effectively giving our server a remote shell interpreter. It's quite nice, as we have a lot of extensions to Rhino written that blend into our server already. PS, I am still working on the array issues, but made a lot of progress today. I just wanted to get this stuff off my desk. Thanks! ________________________________________________________________________ Kurt Westerfeld Managed Object Solutions 2722 Merrilee Drive Suite 350 Fairfax, VA 22031 Phone: 703.208.3330 x225 Fax: 703.208.3331 http://www.mosol.com mailto:kurt@mosol.com shell.zip Name: shell.zip Type: Zip Compressed Data (application/x-zip-compressed) Encoding: base64 ============================================================================== Subject: Rhino Array Source (Fixed) Date: Thu, 9 Sep 1999 14:12:03 -0400 From: "Kurt Westerfeld" <kurt@mosol.com> To: "Norris Boyd" <norris@netscape.com> Attached is NativeJavaObject.java, which seems to now pass the tests supplied to me by you and Scott. Not a lot of change, but a lot of testing and thinking was involved. <g> PS. I also fixed a bug in reportConversionError() which was throwing an IllegalArgumentException inside of the MessageFormat class at times. It also looks a little nicer (uses formatting from NativeJavaMethod) and closer to the C implementation. NativeJavaObject.java Name: NativeJavaObject.java Type: Java Source File (text/java) Encoding: quoted-printable |
||
---|---|---|
.. | ||
resources | ||
shell | ||
ToolErrorReporter.java |