importCommands
Status: Beta
Brought to you by:
juhal
In BeanShell you can use importCommands to specify
directories or packages where the language runtime
searches for "commands". A command is basically a
function that does something useful. In BeanShell a
command can be implemented in BeanShell or Java.
Similar functionality would be useful in bex.
Logged In: YES
user_id=94861
In my opinion this functionality is provided by the include
function in the standard library. It allows one to include
definitions from a script file (in file system or
classpath). What exactly is the missing functionality that
importCommands should implement?
Logged In: NO
We've built a library of commands that gets added to the
classpath by a calling script. Users import those commands
by saying:
importCommands("gov.maricopa.mcao.beanshell.utils");
for example. It's one command per file. We encourage
people to make lots of utilities and share them.