14 Jul 2004 07:43
Re: [groovy-dev] ConsoleSupport / GroovyConsole.
On 11 Jul 2004, at 00:39, Paul Hammant wrote:
> I'm looking for the correct way to mount a groovy console. I've done
> this a dozen times with BeanShell, and know that it's supposed to be
> possible with Groovy.
I'm not sure what you mean by 'mount a console'. Could you give a bit
more detail on what you're trying to do?
> It seems there is some contradiction in CVS - ConsoleSupport (that
> needs to be extended by your own class) and J2eeConsole
>
> The latter seems to offer a few lines of crucial code that would
> invite cut nad paste to your own class. The trouble is that the
> console.setPropoerty("shell",shell) line barfs. It suggests that the
> setting of a read only propoery is no allowed. The former does not
> seem to have any usages. A simple extend does not, on instantiation,
> display a console.
Do you want a Swing or command line console?
FWIW the command line shell is the class groovy.ui.InteractiveShell
James
-------
http://radio.weblogs.com/0112098/
RSS Feed