On Thu, Oct 04, 2001 at 04:22:40PM +0200, Artur Biesiadowski wrote:
> I'm creating bsh console using following code
> new bsh.Interpreter().eval(new InputStreamReader(
> In beanshell.txt I have some definitions ended with desktop(); call.
> Problem is that these definitions span only to end of file - window
> which appear on screen does not understand them.
> Is there any easy way to import this stuff into workspace ?
> As a workaround I can create bsh/commands in my project and split
> commands per file, but I would like to keep initialization in one place
> at the moment.
One way to do it would be to place your stuff into the a ".bshrc" file
(runtime configuration) which will be automatically loaded upon startup.
Bsh will source the file "user.home"/.bshrc upon startup.
This defaults to C:\Windows under win98 and $HOME under Unix.
(see the mailing list archives for more info about variations under Win)
There are certainly other ways, let me know if that helps.