ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r688898 - /ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/URLHandlerRegistry.java
Date Mon, 25 Aug 2008 22:09:54 GMT
Author: maartenc
Date: Mon Aug 25 15:09:54 2008
New Revision: 688898

URL: http://svn.apache.org/viewvc?rev=688898&view=rev
Log:
temporary fix for IVY-880: only use HttpClientHandler when http-client-3.x is available

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/URLHandlerRegistry.java

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/URLHandlerRegistry.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/URLHandlerRegistry.java?rev=688898&r1=688897&r2=688898&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/URLHandlerRegistry.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/URLHandlerRegistry.java Mon Aug 25
15:09:54 2008
@@ -45,6 +45,11 @@
     public static URLHandler getHttp() {
         try {
             Class.forName("org.apache.commons.httpclient.HttpClient");
+            
+            // temporary fix for IVY-880: only use HttpClientHandler when 
+            // http-client-3.x is available
+            Class.forName("org.apache.commons.httpclient.params.HttpClientParams");
+            
             Class handler = Class.forName("org.apache.ivy.util.url.HttpClientHandler");
             Message.verbose("jakarta commons httpclient detected: using it for http downloading");
             return (URLHandler) handler.newInstance();



Mime
View raw message