ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gábor Lipták <gaborlip...@usa.net>
Subject proposed patch for ant to use xerces/jaxp
Date Fri, 13 Oct 2000 17:22:17 GMT
This will make ant use xerces/jaxp

Index: src/main/org/apache/tools/ant/ProjectHelper.java
===================================================================
RCS file:
/home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/ProjectHelper.java
,v
retrieving revision 1.33
diff -c -r1.33 ProjectHelper.java
*** src/main/org/apache/tools/ant/ProjectHelper.java    2000/10/06 07:35:54
1.33
--- src/main/org/apache/tools/ant/ProjectHelper.java    2000/10/13 15:17:59
***************
*** 608,613 ****
--- 608,614 ----

      private static SAXParserFactory getParserFactory() {
          if (parserFactory == null) {
+             System.setProperty("javax.xml.parsers.SAXParserFactory",
"org.apache.xerces.jaxp.SAXParserFactoryImpl");
              parserFactory = SAXParserFactory.newInstance();
          }

At the same time maybe lib/jaxp.jar and lib/xerces.jar could be checked into
CVS to make bootstrap.sh standalone.

Thanks


Mime
View raw message