[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit HttpUnitOptions.java,1.32,1.33
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2002-11-06 13:10:45
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit
In directory usw-pr-cvs1:/tmp/cvs-serv18823/src/com/meterware/httpunit
Modified Files:
HttpUnitOptions.java
Log Message:
Enable JTidy parser if NekoHTML is not in the classpath
Index: HttpUnitOptions.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/HttpUnitOptions.java,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- HttpUnitOptions.java 3 Nov 2002 18:18:19 -0000 1.32
+++ HttpUnitOptions.java 6 Nov 2002 13:10:41 -0000 1.33
@@ -522,6 +522,7 @@
reset();
try {
+ Class.forName( "org.w3c.tidy.Parser" );
_jtidyParser = (HTMLParser) Class.forName( "com.meterware.httpunit.JTidyHTMLParser" ).newInstance();
} catch (InstantiationException e) {
} catch (IllegalAccessException e) {
@@ -529,6 +530,7 @@
}
try {
+ Class.forName( "org.cyberneko.html.HTMLConfiguration" );
_nekoParser = (HTMLParser) Class.forName( "com.meterware.httpunit.NekoHTMLParser" ).newInstance();
} catch (InstantiationException e) {
} catch (IllegalAccessException e) {
|