|Re: Unit test fails to find file that's in source path, unless added to classpath [message #887484 is a reply to message #887364]
||Sat, 16 June 2012 18:01
| David M. Karr
Registered: July 2009
Stephan Herrmann wrote on Sat, 16 June 2012 09:33|
David M. Karr wrote on Fri, 15 June 2012 18:06
In Eclipse, I thought I could get this to work by simply adding "src/main/webapp/WEB-INF" as a source directory.
Why source folder? This would require that all your xml are correctly copied to some binary folder that's on the classpath, since source folders do not directly contribute to the classpath. In combinations of JDT and m2e unexpected things may happen regard such copying (check whether the source folder has any exlusion filters!).
Maybe adding the folder as a "Class Folder" works more straight-forward?
Yes, that makes more sense, and I verified that that works.
Stephan Herrmann wrote on Sat, 16 June 2012 09:33
PS: for indepth advice regarding web applications the WTP forum will likely give better results.
I considered that, but this issue really has nothing to do with the fact that it's a web application.
Powered by FUDForum
. Page generated in 0.04135 seconds