groovy
  1. groovy
  2. GROOVY-4014

Provide more Feedback while downloading Grapes

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7.0
    • Fix Version/s: 1.7.6, 1.8-beta-3
    • Component/s: Grape
    • Labels:
      None
    • Number of attachments :
      3

      Description

      Grape is a great System... but there is one point that is somehow annoying.
      When you download Grapes with huge dependencies it will take some time.
      From the user perspective it seems like the application is crashed.

      Is it possible to inject a Closure into Grape that gives information about the downloading state?

      Like:

      @GrabFeedback({percentage -> println "$

      {percentage}

      % downloaded"})

      This Problem also affects the Eclipse plugin. When you clear the grape cache and you restart the Eclipse, it may take minutes until eclipse becomes responsive.

        Issue Links

          Activity

          Hide
          Guillaume Laforge added a comment -

          By the way, the system property should probably be named with a groovy prefix, like the other existing ones:
          groovy.grape.enable and groovy.grape.autoDownload.

          Show
          Guillaume Laforge added a comment - By the way, the system property should probably be named with a groovy prefix, like the other existing ones: groovy.grape.enable and groovy.grape.autoDownload.
          Hide
          Guillaume Laforge added a comment -

          The patch touches the Groovy console so as to provide status messages when dependencies are resolved and being downloaded.

          Show
          Guillaume Laforge added a comment - The patch touches the Groovy console so as to provide status messages when dependencies are resolved and being downloaded.
          Hide
          Paul King added a comment -

          Some additional logging added. Use -Dgroovy.grapes.report.downloads=true to enable. Set via JAVA_OPTS if using the windows batch file.

          Show
          Paul King added a comment - Some additional logging added. Use -Dgroovy.grapes.report.downloads=true to enable. Set via JAVA_OPTS if using the windows batch file.
          Hide
          Lucas Teixeira added a comment -

          I was looking on how enabling grape download feedback and got here.

          First time it is described it is without the 'groovy' prefix, but the last comment uses the groovy prefix, but "grapes" instead of "grape".

          I've found that the correct way to show is -Dgroovy.grape.report.downloads=true

          Just commenting here in case some other gets here looking for the same.

          Great work btw,

          []s,

          Show
          Lucas Teixeira added a comment - I was looking on how enabling grape download feedback and got here. First time it is described it is without the 'groovy' prefix, but the last comment uses the groovy prefix, but "grapes" instead of "grape". I've found that the correct way to show is -Dgroovy.grape.report.downloads=true Just commenting here in case some other gets here looking for the same. Great work btw, []s,
          Hide
          Ryan Nelson added a comment -

          This is a great feature, but it should be turned on by default.

          Show
          Ryan Nelson added a comment - This is a great feature, but it should be turned on by default.

            People

            • Assignee:
              Paul King
              Reporter:
              Sebastian Rühl
            • Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: