curcuru 00/12/15 07:40:00
Modified: test/java/src/org/apache/qetest/xsl XSLTestHarness.java
Log:
Minor command line update to accept -load as optional arg
Revision Changes Path
1.2 +16 -7
xml-xalan/test/java/src/org/apache/qetest/xsl/XSLTestHarness.java
Index: XSLTestHarness.java
===================================================================
RCS file:
/home/cvs/xml-xalan/test/java/src/org/apache/qetest/xsl/XSLTestHarness.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- XSLTestHarness.java 2000/12/05 19:16:22 1.1
+++ XSLTestHarness.java 2000/12/15 15:40:00 1.2
@@ -88,7 +88,7 @@
* user doesn't call testCaseClose (where do results go?)
* @todo report on memory usage, etc.
* @author [EMAIL PROTECTED]
- * @version $Id: XSLTestHarness.java,v 1.1 2000/12/05 19:16:22 curcuru Exp $
+ * @version $Id: XSLTestHarness.java,v 1.2 2000/12/15 15:40:00 curcuru Exp $
*/
public class XSLTestHarness
{
@@ -101,10 +101,10 @@
{
XSLProcessorTestBase tmp = new XSLProcessorTestBase();
return ("XSLTestHarness - execute multiple Tests in sequence and log
results:\n"
- + " Usage: java XSLTestHarness properties.prop\n"
- + " Reads in all options from a Properties file\n"
- + " -tests" + OPT_TESTS + " <semicolon;delimited;list;of
FQCNs tests to run>\n"
- + " Most other options are identical to
XSLProcessorTestBase:\n"
+ + " Usage: java XSLTestHarness [-load] properties.prop\n"
+ + " Reads in all options from a Properties file:\n"
+ + " " + OPT_TESTS + "=<semicolon;delimited;list;of FQCNs
tests to run>\n"
+ + " Most other options (in prop file only) are identical
to XSLProcessorTestBase:\n"
+ tmp.usage()
);
}
@@ -174,12 +174,21 @@
protected String[] doTestHarnessInit(String args[])
{
// Harness loads all info from one properties file
- String propFileName = args[0];
- harnessProps = new Properties();
+ // semi-HACK: accept and ignore -load as first arg only
+ String propFileName = null;
+ if ("-load".equalsIgnoreCase(args[0]))
+ {
+ propFileName = args[1];
+ }
+ else
+ {
+ propFileName = args[0];
+ }
try
{
// Load named file into our properties block
FileInputStream fIS = new FileInputStream(propFileName);
+ harnessProps = new Properties();
harnessProps.load(fIS);
}
catch (IOException ioe)