I have a newbie Java question.
I had to make suite of J/DBUnit tests for some stored procedures we use in SQL Server. These tests use some XML files in a couple of sub-directories that I originally had placed in the same directory as my Java project.
Anyway, upon checking these tests in, our SVN manager wanted to keep the .java files in one part of the tree, and resources (like the XML files and required JARs) in another part of the tree.
So, my tests had originally referenced the XML files with a relative path which doesn't work now.
My question is:
- Can I make the directories with my XML files available with the CLASSPATH (I hope so).
- Assuming that works, how do I reference a file in my code that was included this way?
- If I shouldn't be using the CLASSPATH for this, I'm open to other solutions.