On Dec 19, 2007 9:57 PM, JavaGeek <[EMAIL PROTECTED]> wrote:
>
> Hello All,
> I have some code that reads a directory in a maven2 project. Is there a way
> to put a directory of files in a maven project and reliably read it from
> JUnit 4 (or TestNG) across platforms?
>
> I have code that will read the contents of a directory, looking for images.
> I'd like to include a directory of images in the project, perhaps in
> test/resources/myImages. I'd like to be able to get a java.io.File
> reference to the directory.
>
> The code needs to run on my Windows workstation as well as my linux build
> server. Any ideas?
I seem to miss something, why does
new File("test/resources/myImages")
not work?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]