You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ru...@us.ibm.com on 1999/12/10 15:17:04 UTC

PATCH for building ANT on JDK 1.1.x


I seem to have insufficient Karma to fix this myself...it is my intent to
work through all the JDK 1.1.x and Windows related issues, and would
appreciate it if someone in the know would point me to the path to
enightlenment and greater harmony with the universe...  (I have the same
issue with jakarta-site, which seems to have a number of errors and
omissions).

Index: ApacheParser.java
===================================================================
RCS file:
/home/cvs/jakarta-tools/ant/src/main/org/apache/tools/ant/ApacheParser
.java,v
retrieving revision 1.1
diff -u -r1.1 ApacheParser.java
--- ApacheParser.java   1999/12/03 12:44:11     1.1
+++ ApacheParser.java   1999/12/10 14:13:29
@@ -56,6 +56,7 @@

 import java.io.File;
 import java.io.IOException;
+import java.net.URL;
 import org.apache.xerces.parsers.DOMParser;
 import org.w3c.dom.Document;
 import org.xml.sax.InputSource;
@@ -73,9 +74,10 @@
     public Document parse(File buildFile)
     throws SAXException, IOException {
         DOMParser p=new DOMParser();
-        p.parse(buildFile.toURL().toExternalForm());
+        URL url=new URL("file","",buildFile.getAbsolutePath());
+        p.parse(url.toExternalForm());
         return(p.getDocument());
     }
 }



Re: PATCH for building ANT on JDK 1.1.x

Posted by James Duncan Davidson <ja...@eng.sun.com>.
> I seem to have insufficient Karma to fix this myself...

And it seems that I don't have the karma to fix this either. Brian, can I
get my cvsadmin group flag back? Purty please? :)

.duncan