如何从清洁bin文件夹,每建prevent的Eclipse? [英] How to prevent Eclipse from cleaning the bin folder for every build?
问题描述
我现在所做的使用Eclipse的一个项目,我必须保存在bin文件夹中的一些资源文件(例如,图像,文字),并且这些文件是由程序所需。
不过,每次构建时,Eclipse会尝试清理文件夹,然后重新生成项目。清洗时,将删除该文件夹中的资源文件。反正有从这样的Eclipse停止?
我知道我可以改变文件的位置,但我也很好奇,为什么Eclipse的会做,会是这样的情况发生pvented $ P $。
谢谢!
我无法准确说出它为什么这样做,但可能这是Eclipse的只是如何做编译:清空输出文件夹,并开始编译。 p>
这是说,如果你把你的文件到一个源文件夹,然后Eclipse会简单地复制文件的过程,以斌
每构建,他们将不会消失。它会做到这一点的任何文件,它不知道如何去编译,例如的.xml
,的.xsd
,巴纽
等。
I am now doing a project using Eclipse, and I have some resource files (e.g., image, text) saved in the bin folder, and these files are needed by the program.
However, with every build, Eclipse would try to clean up the folder, then rebuild the project. When cleaning, it deletes the resource files in the folder. Is there anyway to stop Eclipse from doing this?
I know I could change the location of the files, but I am also curious why Eclipse would do this, and could this be prevented from happening.
Thanks!
I can't say exactly why it does it, but probably that's just how Eclipse does the build: empty the "output folder" and start compiling.
That said, if you put your files into a source folder, then Eclipse will simply copy the files over to bin
on every build and they won't disappear. It will do this to any file it doesn't know how to compile, e.g. .xml
, .xsd
, .png
, etc.
这篇关于如何从清洁bin文件夹,每建prevent的Eclipse?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!