Monday 21 February 2011

Problem setting the grails proxy ?

Issue

If you are using grails on a windows box, you may face an issue while setting the grails proxy using the 'grails add-proxy' command. This is because of the way windows treats any paramters that you pass using the -- option and sets the host name and the port to boolean values.



Resolution

You just need to pass your parameters in double quotes.
Example:

grails add-proxy proxy1 "--host=someproxyserver" "--port= 8080"
grails set-proxy proxy1
Pretty easy!

(Your proxy settings can be found in the %user_home%\.grails\ProxySettings file.
 You can try changing this file with correct values manually also)



No comments:

Post a Comment