|
I do some work at a health care institute which uses authenticated proxy for web access. I also have some code on a sourceforge site (Projeny) on sourceforge's SVN server. I tried configuring proxy within Eclipse (on Linux) but this wouldn't let me check out the project from the Subversion repository using Subclipse. Read on for proxy configuration. Update: This applies to Windows also.
My environment: 64-bit Linux, with 64-bit Eclipse Europa (3.3.x) running on a 64-bit JVM (of course!), with the Subclipse plug-in v1.2.4 installed.
Now, I needed to check out my code from sourceforge.net's subversion repository. The code belongs to my project Projeny, which is a front-end for BNT (Bayes Net Toolbox).
I have configured Eclipse to use a http proxy with authentication for both http and https. In spite of this, when I try to check out my project from the SVN repository, I get a time-out error because Subclipse cannot connect to the SVN server.
I found from the Subversion website that the proxy server is configured in the ~/.subversion/servers file. The Subclipse plug-in reeads this file instead of the setting in Eclipse (duh!).
So, modify your ~/.subversion/server file to have these lines:
[global]
http-proxy-exceptions = *.example.com
http-proxy-host = proxy.example.com
http-proxy-port = 8080
http-proxy-username = myuserid
http-proxy-password = mypassword
By the way, if you are new to Linux, the tilde sign (~) denotes your home directory (of the user who runs Eclipse). The configuration is similar in Windows too, I think. Check out the following website for more information:
https://www.opends.org/wiki//page/ConfiguringSubversionToUseAProxyServer
Update (Oct 8, 2008):
I encountered the same issue on Windows also, Windows Server 2003 Enterprise 32bit to be precise. The same workaround fixes this issue in Windows also. The file you need to edit is located at C:\Documents and Settings\your-windows-username\Application Data\Subversion\servers but the rest of the instructions are the same.
|