Just reformatting the e-mail to look like an actual patch. Sorry for not
following the conventions earlier.
Bojan
---
/home/groups/devel/jakarta/jakarta-tomcat/src/share/org/apache/tomcat/util/depend/DependClassLoader.java
Tue Sep 11 17:42:11 2001
+++ src/share/org/apache/tomcat/util/depend/DependClassLoader.java Thu Sep 13
+09:05:00 2001
@@ -238,9 +238,16 @@
int idx=fileN.indexOf( "!" );
if( idx>=0 )
fileN=fileN.substring( 0, idx) ;
- f=new File( fileN );
- if( debug > 0 ) log( "Jar dep " +f );
- if( ! f.exists()) f=null;
+
+ try{
+ f=new File(new URL(fileN).getFile());
+ if( debug > 0 ) log( "Jar dep " +f );
+ if( ! f.exists()) f=null;
+ } catch(NullPointerException npe){
+ f=null;
+ } catch(MalformedURLException mue){
+ f=null;
+ }
}
if( f==null ) return;