Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Can I prevent Eclipse from deleting a file in my build directory?
Can I prevent Eclipse from deleting a file in my build directory? [message #77936] Fri, 18 July 2003 13:03 Go to next message
Eclipse UserFriend
Originally posted by: mbowman.arinc.com

I am building a web application using Eclipse, Tomcat, and Struts.
I put an ApplicationResources.properties file under WEB-INF/classes
so that it will be on the application's classpath inside Tomcat.
Eclipse deletes this file when I save changes to my java source
files and they are automatically compiled. Is there any way to
prevent this?

Thanks
Re: Can I prevent Eclipse from deleting a file in my build directory? [message #77951 is a reply to message #77936] Fri, 18 July 2003 13:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NOSPAM.us.ibm.com

Don't put it in the output directory. See this link:

http://eclipsewiki.swiki.net/103#erased

Rich
Re: Can I prevent Eclipse from deleting a file in my build directory? [message #77967 is a reply to message #77936] Fri, 18 July 2003 13:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: olivier_thomann.ca.ibm.comNOSPAM

Le Fri, 18 Jul 2003 13:03:28 -0400, "Michael Bowman"
<mbowman@arinc.com> a écrit :
>I am building a web application using Eclipse, Tomcat, and Struts.
>I put an ApplicationResources.properties file under WEB-INF/classes
>so that it will be on the application's classpath inside Tomcat.
>Eclipse deletes this file when I save changes to my java source
>files and they are automatically compiled. Is there any way to
>prevent this?
You should put this file in one of your source folder and it will be
copied automatically to the output folder on a build or you remove the
deletion of the output folder before a build (see the compiler
preferences).
--
Olivier
Re: Can I prevent Eclipse from deleting a file in my build directory? [message #79548 is a reply to message #77951] Wed, 23 July 2003 18:11 Go to previous message
Eclipse UserFriend
Originally posted by: mbowman.arinc.com

On Fri, 18 Jul 2003 13:43:58 -0400, Richard L. Kulp wrote:

> Don't put it in the output directory. See this link:
>
> http://eclipsewiki.swiki.net/103#erased
>
> Rich

Thanks. This worked.
Previous Topic:Console output not switching correctly in M2
Next Topic:cannot paste code into outlook express 2000
Goto Forum:
  


Current Time: Tue May 13 09:43:52 EDT 2025

Powered by FUDForum. Page generated in 0.03142 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top