Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 99281 invoked from network); 11 Aug 2009 11:58:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Aug 2009 11:58:33 -0000 Received: (qmail 25429 invoked by uid 500); 11 Aug 2009 11:58:40 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 25319 invoked by uid 500); 11 Aug 2009 11:58:40 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 25149 invoked by uid 99); 11 Aug 2009 11:58:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Aug 2009 11:58:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Aug 2009 11:58:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 47B55234C046 for ; Tue, 11 Aug 2009 04:58:15 -0700 (PDT) Message-ID: <811280338.1249991895292.JavaMail.jira@brutus> Date: Tue, 11 Aug 2009 04:58:15 -0700 (PDT) From: "Sebb (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (JEXL-70) Add main class to allow scripts etc to be tested In-Reply-To: <1366311504.1249420814925.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JEXL-70?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12741822#action_12741822 ] Sebb commented on JEXL-70: -------------------------- Two new Main classes have been added: jexl.scripting.Main jexl.Main which test JSR-223 and plain Jexl respectively. These are very basic at present, and need enhancing. > Add main class to allow scripts etc to be tested > ------------------------------------------------ > > Key: JEXL-70 > URL: https://issues.apache.org/jira/browse/JEXL-70 > Project: Commons JEXL > Issue Type: New Feature > Reporter: Sebb > Priority: Minor > Fix For: Later > > > 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? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.