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

Eclipse plugin does not compile groovy classes that rely on jar imports (patch included)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.0-JSR-3
    • Fix Version/s: 1.0-JSR-3
    • Component/s: None
    • Labels:
      None

      Description

      The eclipse plugin has for a long time been unusable since it cannot compile correctly groovy classes that depend on external jar files (import statements). This was caused by a bug in constructing the classpath from the eclipse build path, in combination with a GroovyClassLoader issue; the latter was discussed on the developer list. Thanks to Franck for the workaround to the GroovyClassLoader problem.

      Included is a patch that should get the plugin in a slightly better shape, hopefully. IMHO, the plugin really needs a good workover, but unfortunately I don't have to do it myself, and probably not the knowledge either; sorry.)

      Note that I didn't include a test case, since the testcases that exists for the eclipse plugin is still not in shape for the most recent updates... (and frankly I don't have time to fix them myself).

      This issue should probably be linked to issue 961 as well.

        Attachments

        1. eclipse-plugin-patch.txt
          19 kB
          Hein Meling

          Activity

            People

            • Assignee:
              meling Hein Meling
              Reporter:
              meling Hein Meling
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: