facebook

Where to put properties files? [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #219517 Reply

    BrianFox
    Member

    I’m using Tomcat 4 as my app server. It seems that I need to put my properties files in Web-Inf\Classes. How do I get myeclipse to deploy them there? I tried creating a classes folder in Web-inf but eclipse says it already exists, yet it seems hidden from the package explorer.

    Thanks.

    #219537 Reply

    Riyad Kalla
    Member

    Brian,
    This is a good question… you actually should put your properties files in the equivalent location under your source folder, Eclipse will then copy them into your /classes dir for you when your project is built. Some people make the mistake of putting them directly in the /classes folder… but as you will find out soon, that folder is cleaned (Erased) every time your project is built… so that’s not a good idea.

    #219538 Reply

    BrianFox
    Member

    Perfect, thanks.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Where to put properties files? [Closed]

You must be logged in to post in the forum log in