From 42723effc3225e55c75e36c7ea3a244dc0d43103 Mon Sep 17 00:00:00 2001 From: Jacopo Cappellato Date: Mon, 2 Jun 2008 06:28:55 +0000 Subject: [PATCH] Implemented new event handler for Groovy scripts; converted two Beanshell events to Groovy. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@662337 13f79535-47bb-0310-9956-ffa450edef68 --- .../manufacturing/WEB-INF/controller.xml | 4 +- ...uctionRun.bsh => ShowProductionRun.groovy} | 0 ...eatures.bsh => findExampleFeatures.groovy} | 0 .../webapp/example/WEB-INF/controller.xml | 4 +- .../webapp/event/GroovyEventHandler.java | 51 +++++++++++++++++++ 5 files changed, 56 insertions(+), 3 deletions(-) rename applications/manufacturing/webapp/manufacturing/jobshopmgt/{ShowProductionRun.bsh => ShowProductionRun.groovy} (100%) rename framework/example/webapp/example/WEB-INF/actions/includes/{findExampleFeatures.bsh => findExampleFeatures.groovy} (100%) create mode 100644 framework/webapp/src/org/ofbiz/webapp/event/GroovyEventHandler.java diff --git a/applications/manufacturing/webapp/manufacturing/WEB-INF/controller.xml b/applications/manufacturing/webapp/manufacturing/WEB-INF/controller.xml index 876da9918b..8ddf74993a 100644 --- a/applications/manufacturing/webapp/manufacturing/WEB-INF/controller.xml +++ b/applications/manufacturing/webapp/manufacturing/WEB-INF/controller.xml @@ -27,6 +27,7 @@ under the License. + + diff --git a/applications/manufacturing/webapp/manufacturing/jobshopmgt/ShowProductionRun.bsh b/applications/manufacturing/webapp/manufacturing/jobshopmgt/ShowProductionRun.groovy similarity index 100% rename from applications/manufacturing/webapp/manufacturing/jobshopmgt/ShowProductionRun.bsh rename to applications/manufacturing/webapp/manufacturing/jobshopmgt/ShowProductionRun.groovy diff --git a/framework/example/webapp/example/WEB-INF/actions/includes/findExampleFeatures.bsh b/framework/example/webapp/example/WEB-INF/actions/includes/findExampleFeatures.groovy similarity index 100% rename from framework/example/webapp/example/WEB-INF/actions/includes/findExampleFeatures.bsh rename to framework/example/webapp/example/WEB-INF/actions/includes/findExampleFeatures.groovy diff --git a/framework/example/webapp/example/WEB-INF/controller.xml b/framework/example/webapp/example/WEB-INF/controller.xml index 38758646fb..1ce8ef49c3 100644 --- a/framework/example/webapp/example/WEB-INF/controller.xml +++ b/framework/example/webapp/example/WEB-INF/controller.xml @@ -28,7 +28,7 @@ under the License. Example Component Site Configuration File Copyright 2001-2008 The Apache Software Foundation - +