Uploaded image for project: 'Commons JEXL'
  1. Commons JEXL
  2. JEXL-70

Add main class to allow scripts etc to be tested

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.0
    • None

    Description

      I think it would be useful to include a main() class which could be used to test scripts.

      Something very simple, just one optional parameter which is the name of the script file.
      If omitted, then read expressions from System.in.

      The app would evaluate the script/expression and print the return value.

      If the JexlEngine is created using JexlScriptEngineFactory, then it would allow easy testing of the JSR-223 features (i.e. JEXL object) as well.

      WDYT?

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: