facebook

WEB-INF/classes is cleaned on startup [Closed]

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

    rkischuk
    Member

    I’m having a problem that whenever I start Eclipse with MyEclipseIDE installed, the WEB-INF/classes directory iscleaned out. I have important configuration data that NEEDS to be in the classpath of the web app (log4j.properties, hibernate.properties, etc). How can I make it so that MyEclipse doesn’t wipe these files out each time? Restoring them is a major hassle.

    #197299 Reply

    Scott Anderson
    Participant

    How can I make it so that MyEclipse doesn’t wipe these files out each time?

    It is Eclipse’s policy (not MyEclipse’s) that all output build folders are cleaned at the start of each build cycle. The Eclipse builders own the build output folder, so they manage it as they see fit. Your properties files should be placed at the appropriate location (based on what path you want them to have) in your Java source folder. When the Eclipse Java builder finds non-Java files in the source tree, it simply copies them to the build output folder, which is what you want. This will also allow you to place your properties files into a source code control system easily, along with your other source code.

    –Scott
    MyEclipse Support

    #197300 Reply

    rkischuk
    Member

    @scott wrote:

    How can I make it so that MyEclipse doesn’t wipe these files out each time?

    It is Eclipse’s policy (not MyEclipse’s) that all output build folders are cleaned at the start of each build cycle. The Eclipse builders own the build output folder, so they manage it as they see fit. Your properties files should be placed at the appropriate location (based on what path you want them to have) in your Java source folder. When the Eclipse Java builder finds non-Java files in the source tree, it simply copies them to the build output folder, which is what you want. This will also allow you to place your properties files into a source code control system easily, along with your other source code.

    –Scott
    MyEclipse Support

    I understand. I guess when I changes the property using a MyEclipse screen, I didn’t realize it was also changing my Eclipse project’s properties.

    Thanks!

    Rob

    #202630 Reply

    Ceki Gulcu
    Member

    @scott wrote:

    How can I make it so that MyEclipse doesn’t wipe these files out each time?

    It is Eclipse’s policy (not MyEclipse’s) that all output build folders are cleaned at the start of each build cycle. The Eclipse builders own the build output folder, so they manage it as they see fit. Your properties files should be placed at the appropriate location (based on what path you want them to have) in your Java source folder. When the Eclipse Java builder finds non-Java files in the source tree, it simply copies them to the build output folder, which is what you want. This will also allow you to place your properties files into a source code control system easily, along with your other source code.

    –Scott
    MyEclipse Support

    I did not know this important detail. Thank you for sharing the information.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: WEB-INF/classes is cleaned on startup [Closed]

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