Hi Rahul,

 Rahul Akolkar wrote:
Lets add a JEXL [1] engine [2] here [3].

WDYT?
 Has been sounding really interesting, hence: +1.

[1] http://commons.apache.org/jexl/
[2] http://issues.apache.org/jira/browse/JEXL-39
[3]
http://svn.apache.org/repos/asf/jakarta/bsf/trunk/src/org/apache/bsf/engines/
Thanks for these pointers as well!

 Personally, I have been having a very bad conscious due to not excercising
my intentions in the past weeks to work-up all Jira-issues and apply them to
BSF. Especially, not having had the time to add the short info to James
Ervin's Groovy Monkey!

 My next possible window to get back to it would be in a week, but would not
be insulted, if anyone else would step in and beat me on this (having
*really* a bad conscious!).
<snip/>

OK then :-)

  http://svn.apache.org/viewvc?view=rev&revision=656487

Some TODOs (see code), hopefully someone will get to those soon.
Yup! Especially a few Javadoc sentences would be great. (For someone in the know this would take probably no more than 10 minutes to do.)

Also, you may want to add a little info on the version of the JEXL engine (either in the documentation or explicitly in the form of a static field or static getter).

Please allow my commits through (theres also r656486).
AFAICT your commits went through, could check-out

One thing though, what should be the entry in the Languages.properties text file?

Here's the current content:

   # List of script types and their associated scripting engines
   #
   # languageDescriptor = engineClass, ext1|ext2|... {, codebaseURL, ...}
   #
   # where exti are extensions for the language. Note that we leave
   # all the engines enabled now and allow them to fail at load time.
   # This way engines can be added by just adding to the classpath
   # without having to edit this file. Cheating, really, but it works.
   #
   javascript = org.apache.bsf.engines.javascript.JavaScriptEngine, js
   jacl = org.apache.bsf.engines.jacl.JaclEngine, jacl
   jexl = org.apache.bsf.engines.jexl.JEXLEngine, jexl
   netrexx = org.apache.bsf.engines.netrexx.NetRexxEngine, nrx
   java = org.apache.bsf.engines.java.JavaEngine, java
   javaclass = org.apache.bsf.engines.javaclass.JavaClassEngine, class
   bml = org.apache.bml.ext.BMLEngine, bml
   vbscript = org.apache.bsf.engines.activescript.ActiveScriptEngine, vbs
   jscript = org.apache.bsf.engines.activescript.ActiveScriptEngine, jss
   perlscript = org.apache.bsf.engines.activescript.ActiveScriptEngine, pls
   perl = org.apache.bsf.engines.perl.PerlEngine, pl
   jpython = org.apache.bsf.engines.jpython.JPythonEngine, py
   jython = org.apache.bsf.engines.jython.JythonEngine, py
   lotusscript = org.apache.bsf.engines.lotusscript.LsEngine, lss
   xslt = org.apache.bsf.engines.xslt.XSLTEngine, xslt
   pnuts = pnuts.ext.PnutsBSFEngine, pnut
   beanbasic = org.apache.bsf.engines.beanbasic.BeanBasicEngine, bb
   beanshell = bsh.util.BeanShellBSFEngine, bsh
   ruby = org.jruby.javasupport.bsf.JRubyEngine, rb
   judoscript = com.judoscript.BSFJudoEngine, judo|jud
   groovy = org.codehaus.groovy.bsf.GroovyEngine, groovy|gy
   objectscript = oscript.bsf.ObjectScriptEngine, os
   prolog = ubc.cs.JLog.Extras.BSF.JLogBSFEngine, plog|prolog
   rexx = org.rexxla.bsf.engines.rexx.RexxEngine, rex | rexx | cls |
   rxj | rxs | jrexx

Maybe something like:

   jexl = org.apache.bsf.engines.jexl.JEXLEngine, jexl


Regards,

---rony

Reply via email to