Hi,
is it possible to define a project specific classpath for tomcat? I have multiple projects with each of it having its own properties files located in the filesystem. The directory where the properties are located should be added to tomcat’s classpath, but when creating a war those files should not be included. (That’s why I cannot simply add the directory as an eclipse source-path I guess.)
Here’s my project layout:
/eclipse-workspace/project1/src/… -> source directory
/eclipse-workspace/project1/properties/… -> location of properties files, this directory should be added to tomcat’s classpath
/eclipse-workspace/project2/src/… -> source directory
/eclipse-workspace/project2/properties/… -> location of properties files, this directory should be added to tomcat’s classpath
As there may be conflicting files in the properties directories I cannot simply add all directories to tomcat’s classpath.
Back to my initial question: is there a way to add something like this to tomcat’s classpath: $PROJECT_ROOT/properties -> which would then be resolved for the specific project.
Best regards
Soeren