Details

    • Type: Improvement Improvement
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0m2
    • Fix Version/s: 2.0.0RC1
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      When Groovy is run on the command-line, it automatically picks up any jars in your .groovy/lib directory.
      It is desirable to have this behavior in the plugin as well, so that the results are the same when running in Eclipse or on the commandline.
      Current workaround in Eclipse is to add the libraries manually, one by one.

        Issue Links

          Activity

          Hide
          Andy Clement added a comment -

          I'd imagine RunAs groovy script will do this automatically (or at least it should do...)

          For RunAs application, we probably have to decide whether to pull them in when the project is defined if it is pointing to a new set of resources. Or we provide an easy context menu action on a groovy project 'Import groovy libs' or somesuch that will do what you currently have to do manually. I'm not so sure about it scanning repeatedly watching for changes (unless groovy libs is going to be a folder under our eclipse control), but if we can make it easy to sync up the project with the current state of groovy libs, maybe that is good enough.

          What happens here may be influenced by that other bug on the work directory.

          Show
          Andy Clement added a comment - I'd imagine RunAs groovy script will do this automatically (or at least it should do...) For RunAs application, we probably have to decide whether to pull them in when the project is defined if it is pointing to a new set of resources. Or we provide an easy context menu action on a groovy project 'Import groovy libs' or somesuch that will do what you currently have to do manually. I'm not so sure about it scanning repeatedly watching for changes (unless groovy libs is going to be a folder under our eclipse control), but if we can make it easy to sync up the project with the current state of groovy libs, maybe that is good enough. What happens here may be influenced by that other bug on the work directory.
          Hide
          Andrew Eisenberg added a comment -

          But, these libraries must be included for reconciling anyway. So, even if they are picked up automatically when running as a script, they should be around for editing and reconciling.

          My view is that these libraries should be included in the GROOVY SUPPORT classpath container. Perhaps there can be an option somewhere to exclude them for a particular project. And maybe also an option to exclude the groovy jar (but include the extra jars in the .groovy/lib file).

          The difficult question is knowing when to refresh the classpath. It would be a waste to do it on each incremental build. I'm not sure what kind of support there is for eclipse to monitor an external folder for changes.

          Show
          Andrew Eisenberg added a comment - But, these libraries must be included for reconciling anyway. So, even if they are picked up automatically when running as a script, they should be around for editing and reconciling. My view is that these libraries should be included in the GROOVY SUPPORT classpath container. Perhaps there can be an option somewhere to exclude them for a particular project. And maybe also an option to exclude the groovy jar (but include the extra jars in the .groovy/lib file). The difficult question is knowing when to refresh the classpath. It would be a waste to do it on each incremental build. I'm not sure what kind of support there is for eclipse to monitor an external folder for changes.
          Hide
          Andrew Eisenberg added a comment -

          I have something that is working in my workspace on the mac, I will commit this, but I need confirmation that this works on windows and linus before I can close this bug.

          Show
          Andrew Eisenberg added a comment - I have something that is working in my workspace on the mac, I will commit this, but I need confirmation that this works on windows and linus before I can close this bug.
          Hide
          Andrew Eisenberg added a comment -

          Working well enough. Closing.

          Show
          Andrew Eisenberg added a comment - Working well enough. Closing.

            People

            • Assignee:
              Andrew Eisenberg
              Reporter:
              Albatross
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: