Bug 10627 - Rebuild Deletes non-Class Resources
Summary: Rebuild Deletes non-Class Resources
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P2 critical (vote)
Target Milestone: 2.0 M4   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-02 09:33 EST by Gary Murphy CLA
Modified: 2002-03-13 11:20 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.