Re: Interpreter exit on EOF when interactive
Patrick Niemeyer <[email protected]> Wed, 22 Sep 2004 19:51:54 -0500
| Newsgroups | gmane.comp.java.beanshell.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sep 22, 2004, at 3:31 PM, George Coles wrote: > I have been trying to figure out why the entire app exits suddenly > when I > type exit(); in the JConsole window. Interpreter.setExitOnEOF( false ) > should keep this from happening in interactive mode. Interactive mode > is > the mode I am in when I run the console and type commands into it > right? The setExitOnEOF flag will prevent the interpreter from shutting down the VM when you end the input stream - e.g. hit Control-D in the window. However the exit() command is just a trivial wrapper around System.exit(). The exit command does pay attention to a variable called bsh.system.shutdownOnExit. However if you set this to false the exit command doesn't really do anything. These were both rough edges that need to be cleaned up... sorry about that. Pat ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php