diff --git a/framework/base/groovyScripts/GroovyInit.groovy b/framework/base/groovyScripts/GroovyInit.groovy deleted file mode 100644 index 3ad60d959b..0000000000 --- a/framework/base/groovyScripts/GroovyInit.groovy +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -@BaseScript(org.apache.ofbiz.service.engine.GroovyBaseScript) -import groovy.transform.BaseScript diff --git a/framework/base/src/main/java/org/apache/ofbiz/base/util/GroovyUtil.java b/framework/base/src/main/java/org/apache/ofbiz/base/util/GroovyUtil.java index acb54bc7a0..e36ac545f4 100644 --- a/framework/base/src/main/java/org/apache/ofbiz/base/util/GroovyUtil.java +++ b/framework/base/src/main/java/org/apache/ofbiz/base/util/GroovyUtil.java @@ -57,16 +57,6 @@ public class GroovyUtil { groovyClassLoader = new GroovyClassLoader(GroovyUtil.class.getClassLoader(), conf); } groovyScriptClassLoader = groovyClassLoader; - /* - * With the implementation of @BaseScript annotations (introduced with Groovy 2.3.0) something was broken - * in the CompilerConfiguration.setScriptBaseClass method and an error is thrown when our scripts are executed; - * the workaround is to execute at startup a script containing the @BaseScript annotation. - */ - try { - GroovyUtil.runScriptAtLocation("ofbizhome://framework/base/groovyScripts/GroovyInit.groovy", null, null); - } catch (Exception e) { - Debug.logWarning("The following error occurred during the initialization of Groovy: " + e.getMessage(), module); - } } /**