OK, I finally got around to this:
> 3.  This is very low priority but if I specify in
> "gary.test.properties":
conf.logFile=c:/Clean-xalan/results-conf/results.xml
>  and the results-conf directory is not yet created, I get:
>
> [xalantest] XMLFileLogger.initialize() EXCEPTION:
> java.io.FileNotFoundException:
>  c:/Clean-xalan/results-conf/results.xml
> [xalantest] java.io.FileNotFoundException:
> c:/Clean-xalan/results-conf/results.xml
> [xalantest]     at
> java.io.FileOutputStream.<init>(FileOutputStream.java:61)
> [xalantest]     at
> java.io.FileOutputStream.<init>(FileOutputStream.java:106)
> [xalantest]     at java.io.FileWriter.<init>(FileWriter.java:43)
> [xalantest]     at
> org.apache.qetest.XMLFileLogger.initialize(XMLFileLogger.java:337)

Works fine for me!  (At least on W2KSP2, IBM JDK 1.3 ;-)

Oh, wait, it fails mostly as described on Sun JDK 1.1.8.  Ok.  So I checked
in a little bit more parent directory creation checking, but I still feel
like I'm missing something - what's the easiest way to ensure this file
(and parent dirs) actually gets created?  I'll try to add a note to the
docs later on as well.
Oh: and it might work better if you use system-dependent paths for logFile
and outputDir as well.

- Shane

Reply via email to