Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-4288

GroovyScriptEngine can't refresh class from url other than file

    XMLWordPrintableJSON

Details

    • Patch

    Description

      the class GroovyScriptEngine loaded from a url other than file will never be updated. I made a patch for it.

      exam:
      gse = new groovy.util.GroovyScriptEngine(new String[]

      { "scripts", "http://localhost/" }

      );
      gse.getConfig().setMinimumRecompilationInterval(0);

      the class from http://localhost/ will never refresh.

      I found this when made a URL type for JDBC.

      Attachments

        1. GroovyScriptEngine.java.patch
          0.5 kB
          lwh
        2. GroovyScriptEngine.patch
          0.6 kB
          lwh
        3. test.zip
          2 kB
          lwh

        Issue Links

          Activity

            People

              guillaume Guillaume Sauthier
              wonder365 lwh
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: