Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-10806

Groovy Base script redundancy

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Trunk
    • None
    • framework
    • None

    Description

      According to Groovy documentation the following construction:

      CompilerConfiguration conf = new CompilerConfiguration();
      conf.setScriptBaseClass(scriptBaseClass);
      groovyClassLoader = new GroovyClassLoader(GroovyUtil.class.getClassLoader(), conf);
      

      is equivalent to running the a script containing the @BaseScript annotation.

      In org.apache.ofbiz.base.util.GroovyUtil instead of choosing one solution, we are doing both.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            mthl Mathieu Lirzin (Inactive)
            mthl Mathieu Lirzin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment