- This topic has 3 replies, 2 voices, and was last updated 18 years, 7 months ago by Riyad Kalla.
-
AuthorPosts
-
ppine1MemberHi,
In my Web App, under the webroot directory, I have a ‘properties’ directory where I keep all resource bundles and log properties files. I need to copy those properties into the WEB-INF/classes dir in the final deployable .war file. The only way I found that would do this in MyEclipse automatically was to place these .properties files into the src directory. Then, when the web app is built, the files are copied into the WEB-INF/classes dir. If I declare the ‘properties’ directory as another source directory with the WEB-INF/classes as the output directory – it does not lead to copying the files over.I woudl really prefer not to have the prooperties files under the src directory, for various reasons – is there any way to make MyEclipse do what I need and pick these files up from the ‘properties’ dir?
Thanks!
Marina
Riyad KallaMemberI have a ‘properties’ directory where I keep all resource bundles and log properties files.
This should go in the root of your /src directory actually.
If I declare the ‘properties’ directory as another source directory with the WEB-INF/classes as the output directory – it does not lead to copying the files over.
It should. Make sure you haven’t accidentally set another output dir for that individual source dir. Also make sure it’s a different dir from your WebRoot. Really the best policy is to keep this in your /src dir. This isn’t a MyEclipse thing, this is a “what most people do” thing.
I woudl really prefer not to have the prooperties files under the src directory, for various reasons – is there any way to make MyEclipse do what I need and pick these files up from the ‘properties’ dir?
Actually you did exactly the right thing by placing it in another directory and making that dir a source directory. I’m surprised it didn’t work.
ppine1MemberThe problem was that I had the properties directory under the web root dir. Once I moved it out – the build worked correctly.
thanks!!
Riyad KallaMemberGlad it’s working now.
-
AuthorPosts