Index: DescriptorHandler.java
===================================================================
RCS file: /home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/DescriptorHandler.java,v
retrieving revision 1.7
diff -r1.7 DescriptorHandler.java
58a59
> import java.net.*;
111a113,114
>     private Hashtable urlDTDs = new Hashtable();
> 
142a146,155
> 
>         try {
>             URL urldtd = new URL(location);
>             if (publicId != null) {
>                 urlDTDs.put(publicId, urldtd);
>             }            
>         } catch ( java.net.MalformedURLException   e) {
>             //ignored
>         } 
>         
168c181,192
<         
---
> 
>         URL dtdUrl = (URL) urlDTDs.get(publicId);
>         if ( dtdUrl != null ) {
>             try {
>                 InputStream is = dtdUrl.openStream();
>                 owningTask.log("Resolved " + publicId + " to local url " + dtdUrl, Project.MSG_VERBOSE);
>                 return new InputSource(is);
>             } catch ( IOException ioe) {
>                 //ignore
>             }            
>         } 
>                 
