You can create a new module that contains your shared config files and add it as a dependency for your project, with test scope if your config files are used only for tests

Emmanuel

jiangshachina a écrit :
Hi guys,
I'm using Spring, Struts and Hibernate, and have to deal with so many
configuration or resource files.
Then some troubles come out.

Assuming, there is two projects app and web.
Project app focuses on Simple Application; Project web focuses on Web
Application.
Generally, the configuration files(e.g. applicationContext.xml) are in web
project.
Now, a JUnit program in app project want to test an application program in
the same project.
But the application program depends on applicationContext.xml.
JUnit program doesn't touch the file, because they are in different
projects.
How to solve the problem(excepts for copying the file to app project
directly)?

In fact, we must encounter too many similar cases in real-world projects.

a cup of Java, cheers!
Sha Jiang


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

Reply via email to