- This topic has 3 replies, 3 voices, and was last updated 20 years, 9 months ago by Ceki Gulcu.
-
AuthorPosts
-
rkischukMemberI’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.
Scott AndersonParticipantHow 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
rkischukMember@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 SupportI 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
Ceki GulcuMember@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 SupportI did not know this important detail. Thank you for sharing the information.
-
AuthorPosts