Re: Accessing an xsl in another project from a unit test case

2012-06-22 Thread Barry Allen
My apologies, but I'm afraid I spoke too soon.. I was running the test successfully from Eclipse (Right click, Run As => JUnit) after removing the duplicated xsl file from my project. Once I ran the Maven build, the test fails inside the build with: java.io.FileNotFoundException: class path resour

Re: Accessing an xsl in another project from a unit test case

2012-06-22 Thread Barry Allen
Yes, it works now after I removed the duplicate xsl files from the test/resources folder of my secondary project. The real culprit was me not including the xsl files in the utlitity project build (needed to modify the utility project pom file and include the xslt folder). Now I can run my unit tes

Re: Accessing an xsl in another project from a unit test case

2012-06-22 Thread Barry Allen
Thank you for your replies, Wayne and Tobias. Wayne, I did need to tweak the pom file of the utility project to include the xsl directory, as I was not doing that originally. I will try modifying the tests now to see if the xsl file will be picked up from inside of the utlity project's jar file.

Accessing an xsl in another project from a unit test case

2012-06-20 Thread Barry Allen
Hello. I have a utility project that contains an .xsl file that I would like to reuse in multiple projects. The .xsl file resides in the src/main/resources folder of the utility project. I am writing a junit test case inside of a different project (there are class dependencies that do not live in