Bug 10627

Summary: Rebuild Deletes non-Class Resources
Product: [Eclipse Project] JDT Reporter: Gary Murphy <glm>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED WONTFIX QA Contact:
Severity: critical    
Priority: P2    
Version: 2.0   
Target Milestone: 2.0 M4   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Gary Murphy CLA 2002-03-02 09:33:57 EST
I have a resources properties file located in my  WEB-INF/classes directory so
that it will be loaded by the Tomcat class loader.  When I do a rebuild, all
files in that directory are delete instead of just the *.class files.

This is a serious problem in that I am going to have to backup a copy of the
file every time it changes to avoid data loss.
Comment 1 Philipe Mulet CLA 2002-03-04 08:30:38 EST
Can't you instead put it in a separate library folder ? The output folder is 
managed by the Java builder.

Also see JDT/Core notes (under development resources) on the output folder
http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/org.eclipse.jdt.core/notes/r
2.0/output%20folder/output-folder.html
Comment 2 Gary Murphy CLA 2002-03-04 10:32:43 EST
Not really.  It is a webapp and I need for the resource (Struts message file, by
the way) to be available to the class loader.
Comment 3 Philipe Mulet CLA 2002-03-12 08:57:56 EST
Then you need to deploy your code in a distinct folder, see the explanation at 
the URL above.