ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@locus.apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant ProjectHelper.java
Date Thu, 14 Sep 2000 14:04:39 GMT
bodewig     00/09/14 07:04:39

  Modified:    src/main/org/apache/tools/ant ProjectHelper.java
  Log:
  Provide the SAXParser with the File instead of an InputSource to give
  it a chance to parse relative URIs.
  
  PR: 54
  Submitted by:	Achim Dannecker <A.Dannecker@gmx.de>
  
  Revision  Changes    Path
  1.29      +3 -3      jakarta-ant/src/main/org/apache/tools/ant/ProjectHelper.java
  
  Index: ProjectHelper.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/ProjectHelper.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- ProjectHelper.java	2000/09/14 07:19:51	1.28
  +++ ProjectHelper.java	2000/09/14 14:04:38	1.29
  @@ -97,9 +97,9 @@
        */
       private void parse() throws BuildException {
           try {
  -            parser = getParserFactory().newSAXParser().getParser();
  -            parser.setDocumentHandler(new RootHandler());
  -            parser.parse(new InputSource(new FileReader(buildFile)));
  +            SAXParser saxParser = getParserFactory().newSAXParser();
  +            parser = saxParser.getParser();
  +            saxParser.parse(buildFile, new RootHandler());
           }
           catch(ParserConfigurationException exc) {
               throw new BuildException("Parser has not been configured correctly", exc);
  
  
  

Mime
View raw message