facebook

[Closed] Ourput dir hidden, where to put .properties files?

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #244271 Reply

    cyberroadie
    Member

    Hello,

    In the new (beta) release of myEclipse I noticed that the WEB-INF/classes directory is hidden in the package explorer, (maybe because it’s my output folder ??). But this is also the location where I put my (application specific) properties and messages.properties files and which are therefor also hidden meaning I cannot open them anymore.

    Should I put my properties file in another location or should I change the location of the build output directory?

    Regards,

    Olivier

    PS I’m building a spring webapp and using the MyEclipse J2EE view

    #244288 Reply

    Riyad Kalla
    Member

    In the new (beta) release of myEclipse I noticed that the WEB-INF/classes directory is hidden in the package explorer, (maybe because it’s my output folder ??).

    Exactly. This is actually an Eclipse restriction, the output folder has always been hidden in the package view.

    But this is also the location where I put my (application specific) properties and messages.properties files and which are therefor also hidden meaning I cannot open them anymore.

    Definately do not do that, those files should be placed into your source tree in the appropriate location. The build process will copy them into the output folder. When Eclipse “cleans” it’s output folder, it erases everything in it, that includes your resources files. Don’t place files in there manually, let the build process do it for you. Same goes for any project you are working on, even if you are just using Ant, you should ‘build’ your output result from a set of source folders in such a way that you can throw out the build dir and recompile the project.

    Should I put my properties file in another location or should I change the location of the build output directory?

    Yes definately. I know it will feel weird at first, but if you start looking through the JAR files of these bigger projects (Tomcat, JSTL, JSF, etc.) you’ll notice they all do it. Resource files (.properties, .xml, .xsd, etc.) go into the source tree into appropriate locations.

    #244391 Reply

    cyberroadie
    Member

    Thanks, that clarifies a lot

    #244392 Reply

    Riyad Kalla
    Member

    No problem, the first time someone told me to do this, I ignored them. Then I ended up erasing all my XML resource files that weren’t under soruce control just 1 time, and then believed them 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: [Closed] Ourput dir hidden, where to put .properties files?

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