PageRenderTime 42ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/jEdit/tags/jedit-4-2-pre4/bsh/commands/exit.bsh

#
Unknown | 12 lines | 10 code | 2 blank | 0 comment | 0 complexity | 7d18ecf86a2a02a7d9ae8bf09d61713b MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. /**
  2. Conditionally exit the virtual machine.
  3. Call System.exit(0) unless bsh.system.shutdownOnExit == false.
  4. */
  5. bsh.help.exit = "usage: exit()";
  6. exit() {
  7. // shutdown Java VM unless flagged
  8. if ( bsh.system.shutdownOnExit != false )
  9. System.exit(0);
  10. }