You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by ju...@apache.org on 2002/02/25 10:47:04 UTC
cvs commit: jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor TErrorsReport.java
juergen 02/02/25 01:47:04
Modified: testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor
TErrorsReport.java
Log:
Allow a relative specification of the DTD.
Revision Changes Path
1.3 +4 -6 jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor/TErrorsReport.java
Index: TErrorsReport.java
===================================================================
RCS file: /home/cvs/jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor/TErrorsReport.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- TErrorsReport.java 21 Nov 2001 16:29:23 -0000 1.2
+++ TErrorsReport.java 25 Feb 2002 09:47:04 -0000 1.3
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor/TErrorsReport.java,v 1.2 2001/11/21 16:29:23 juergen Exp $
- * $Revision: 1.2 $
- * $Date: 2001/11/21 16:29:23 $
+ * $Header: /home/cvs/jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor/TErrorsReport.java,v 1.3 2002/02/25 09:47:04 juergen Exp $
+ * $Revision: 1.3 $
+ * $Date: 2002/02/25 09:47:04 $
*
* ====================================================================
*
@@ -88,7 +88,6 @@
File f = null;
String inname = null;
String outname = null;
- InputStream in = null;
PrintStream out = System.out;
if( a.isOptionSet("infile") ) {
@@ -96,7 +95,6 @@
f = new File( inname );
if( !f.exists() )
out.println( "\nFile "+inname+" not found\n" );
- in = new FileInputStream(f);
}
if( a.isOptionSet("outfile") ) {
@@ -119,7 +117,7 @@
}
SAXBuilder sax = new SAXBuilder();
- Document doc = sax.build( in );
+ Document doc = sax.build( inname );
Element root = doc.getRootElement();
Iterator tci = root.getChildren("testCase").iterator();
long errors = 0;
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>