r9603 - helma-ng/trunk/modules/helma
| Newsgroups | gmane.comp.java.helma.cvs |
|---|---|
| Message-ID | <20090410122913.043173D0D6@mia> |
Author: hannes
Date: 2009-04-10 14:29:12 +0200 (Fri, 10 Apr 2009)
New Revision: 9603
Modified:
helma-ng/trunk/modules/helma/shell.js
Log:
Catch exception for missing jline package in helma/shell
Details at http://dev.helma.org/trac/helma/changeset/9603
Modified: helma-ng/trunk/modules/helma/shell.js
===================================================================
--- helma-ng/trunk/modules/helma/shell.js 2009-04-10 12:18:42 UTC (rev 9602)
+++ helma-ng/trunk/modules/helma/shell.js 2009-04-10 12:29:12 UTC (rev 9603)
@@ -4,7 +4,12 @@
export('write', 'writeln', 'read', 'readln', 'quit');
var output = java.lang.System.out;
-var input = new Packages.jline.ConsoleReader();
+var input;
+try {
+ input = new Packages.jline.ConsoleReader();
+} catch (x) {
+ output.println("No input: " + x);
+}
/**
* Write 0..n arguments to standard output.