Re: Adding imports?
Slava Pestov <[email protected]> Sun, 23 Jan 2005 13:55:30 -0500
| Newsgroups | gmane.comp.java.beanshell.devel |
|---|---|
| Message-ID | <[email protected]> |
Before loading the script, evaluate some import statements in the interpreter. Darren Govoni wrote: > Hi, > I was trying to do something I thought trivial. I want to load a > script into an interpreter instance, but I want to prime the interpreter > with import packages so the script doesn't have to. I tried > reloadPackages() with the 'new' packages the script will need, but that > didn't work. Any tips? I want to avoid manipulating the script string > to do this. > > thanks! > Darren ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl