Hi All,

I have a Test class that requires to load a XML file.
I do it like this:
Thread.currentThread().getContextClassLoader
().getResource(Constants.XML_CONFIG_FILENAME_DEFAULT)
Issue is that my Maven project does not include my xml/dtd files, so
the test fails to load the xml resource.

My XML file is located in root source directory.
$project/src/my.xml
$project/src/com/.../.../.../

I have played around with my project.xml <build/> stuff with no luck.

How does Maven go about running tests in terms of resource locating,
classpaths, etc.?
Where does it run test from in relation to directory structure?

Regards,
--Alen




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to