Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1 importCommands

open
nobody
None
6
2006-09-25
2006-09-25
Juha Lindström
No

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.

Discussion

  • 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.