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

Add configuration options to grape for http proxy settings

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6
    • 1.6.1, 1.7-beta-1
    • None
    • None

    Description

      Perhaps this already exists, but it would be extremely useful to have a central configuration file or environment variable setting that could be used to store system wide http proxy settings to be used by Grape. Grape uses Ivy internally, but the usual ANT_OPTS approach doesn't seem to get picked up. Using brute force on the command line, I was able to force the proxy settings via:

      groovy -Dhttp.proxyHost=<host> -Dhttp.proxyPort=<port> myGroovyScriptWithGrapeGrabs.groovy

      However, it appears that the same parameters don't work if you run grape from the command line. For example:

      grape -Dhttp.proxyHost=<host> -Dhttp.proxyPort=<port> commons-lang commons-lang 2.4

      And if this feature does already exist, or when it is implemented, it would obviously be something very useful to add to the documentation page:
      http://groovy.codehaus.org/Grape

      Attachments

        Activity

          People

            shemnon Daniel Ferrin
            loverde Jim LoVerde
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: