tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@hyperreal.org
Subject cvs commit: jakarta-tools/ant/src/main/org/apache/tools/ant ProjectHelper.java
Date Fri, 03 Dec 1999 12:44:24 GMT
pier        99/12/03 04:44:23

  Modified:    ant/src/main/org/apache/tools/ant ProjectHelper.java
  Log:
  Dummy parser abstraction class for ANT to be used until the Java
  API for XML Parsing are released.
  
  Revision  Changes    Path
  1.7       +2 -8      jakarta-tools/ant/src/main/org/apache/tools/ant/ProjectHelper.java
  
  Index: ProjectHelper.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tools/ant/src/main/org/apache/tools/ant/ProjectHelper.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ProjectHelper.java	1999/11/23 08:27:26	1.6
  +++ ProjectHelper.java	1999/12/03 12:44:22	1.7
  @@ -60,9 +60,6 @@
   import java.lang.reflect.*;
   import java.util.Hashtable;
   import java.util.StringTokenizer;
  -import com.sun.xml.parser.Resolver;
  -import com.sun.xml.tree.XmlDocument;
  -import org.xml.sax.InputSource;
   import org.xml.sax.SAXException;
   import org.w3c.dom.*;
       
  @@ -80,15 +77,12 @@
       {
   
   	// XXX
  -	// need to make this a bit more parser independent...
   	// need to get rid of the DOM layer and use SAX
   	
  -	InputSource input;
  -	XmlDocument doc;
  +	Document doc;
   
   	try {
  -	    input = Resolver.createInputSource(buildFile);
  -	    doc = XmlDocument.createXmlDocument(input, false);
  +	    doc=Parser.getParser(project).parse(buildFile);
   	} catch (IOException ioe) {
   	    String msg = "Can't open config file: " + buildFile +
   		" due to: " + ioe;
  
  
  

Mime
View raw message