From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Aaron M. Renn" To: Anthony Green Cc: mauve-discuss@sourceware.cygnus.com Subject: Re: File access (was: Character Test) Date: Fri, 08 Jan 1999 10:54:00 -0000 Message-id: <00db01be3b37$df961e70$68102ad1@6748bsc3p255.focal.com> X-SW-Source: 1999-01/msg00005.html >I was thinking about File usage the other day. I'd like to suggest >that we introduce an abstract interface to test input data (like >UnicodeData.txt). So rather than having testlets open files >themselves, they would pass the file name to the TestHarness, and the >harness would return a Reader. This is ok by me. You will notice that I converted Artur's test to use getSourceDirectory, but I appened a Unix style "path/path/path" filename, which is really a no-no. If we can't use getSystemResource to do this, we should use an equivalent facility in our TestHarness to avoid this situation. If we do build the facility into the Harness, we might want to also support automagic handling of different versions of the file for differnt versions/subspecifications of Java. The recently discussed Unicode file would be an example of this. We could have a basename for the requested resource, and try appending various tags to it to generate the file name similar to how ResourceBundle does it. -- Aaron M. Renn (arenn@urbanophile.com) http://www.urbanophile.com/arenn/