Author: maartenc
Date: Sat May 12 06:11:16 2007
New Revision: 537410

URL: http://svn.apache.org/viewvc?view=rev&rev=537410
Log:
FIX: Configure fails when having httpclient in classpath without 
commons-logging (IVY-502)

Modified:
    incubator/ivy/core/trunk/CHANGES.txt
    
incubator/ivy/core/trunk/src/java/org/apache/ivy/util/url/URLHandlerRegistry.java

Modified: incubator/ivy/core/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/incubator/ivy/core/trunk/CHANGES.txt?view=diff&rev=537410&r1=537409&r2=537410
==============================================================================
--- incubator/ivy/core/trunk/CHANGES.txt (original)
+++ incubator/ivy/core/trunk/CHANGES.txt Sat May 12 06:11:16 2007
@@ -51,6 +51,7 @@
 
 - IMPROVEMENT: Allow "main" parameters to be passed directly (instead of using 
-args flag) (IVY-480) (thanks to Archie Cobbs)
 
+- FIX: Configure fails when having httpclient in classpath without 
commons-logging (IVY-502)
 - FIX: packaging data not parsed in maven 2 pom (IVY-500) (thanks to Jeffrey 
Blatttman)
 - FIX: install ant task: requires default resolver in ivy settings (IVY-477)
 - FIX: Ant project reference lost from context on multiple ant calls in single 
thread (IVY-497) (thanks to Jaroslaw Wypychowski)

Modified: 
incubator/ivy/core/trunk/src/java/org/apache/ivy/util/url/URLHandlerRegistry.java
URL: 
http://svn.apache.org/viewvc/incubator/ivy/core/trunk/src/java/org/apache/ivy/util/url/URLHandlerRegistry.java?view=diff&rev=537410&r1=537409&r2=537410
==============================================================================
--- 
incubator/ivy/core/trunk/src/java/org/apache/ivy/util/url/URLHandlerRegistry.java
 (original)
+++ 
incubator/ivy/core/trunk/src/java/org/apache/ivy/util/url/URLHandlerRegistry.java
 Sat May 12 06:11:16 2007
@@ -50,6 +50,11 @@
         } catch (ClassNotFoundException e) {
             Message.verbose("jakarta commons httpclient not found: using jdk 
url handling");
             return new BasicURLHandler();
+               } catch (NoClassDefFoundError e) {
+                       Message.verbose("error occurred while loading jakarta 
commons httpclient: " + e.getMessage());
+                       Message.verbose("Using jdk url handling instead.");
+            //return new BasicURLHandler();
+                       throw e;
         } catch (InstantiationException e) {
             Message.verbose("couldn't instantiate HttpClientHandler: using jdk 
url handling");
             return new BasicURLHandler();


Reply via email to