什么时候Eclipse将资源复制到输出文件夹? [英] When does Eclipse copy resources to the output folder?

查看:1269
本文介绍了什么时候Eclipse将资源复制到输出文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到,有时候我将Eclipse项目中的源文件夹中的资源立即复制到输出文件夹(bin)中。我使用eclipse编辑器更改属性文件并保存...并且bin仍然具有旧版本。



有谁知道什么是触发器的复制(以及如何我可以从插件中触发)?
我认为资源发生变化时会自动发生。



- 编辑 -



澄清我的意思是通过从插件触发它:我有一个插件,取决于最新的资源在输出文件夹,但显然资源是过时的,当我的插件被调用。这就是为什么我需要更好地了解发生了什么,当我需要时我可以强制它。

解决方案

这是一个 Bug 几乎所有的Eclipse版本都没有任何原因。我的日食3.5.2和3.6.2都有一天遇到这个问题。在我的情况下,我需要将修改后的.clj clojure源文件复制到classes目录中,以便在Web应用程序中立即执行,现在我必须在/etc/svc/server中设置/ src在web appserver启动脚本的CLASSPATH中,暂时解决我的问题。 / p>

I noticed that "sometimes" the resources i put into a source folder in my Eclipse project will not be copied to the output folder ("bin") immediately.
E.g. i change a properties file using the eclipse editor and save... and "bin" still has the old version.

Does anyone know what exactly triggers the copying (and how i can trigger that from a plugin)? I thought it happened automatically when a resource changes.

-- EDIT --

To clarify what i meant by triggering it from a plugin: I have a plugin that depends on up to date resources in the output folder, but apparently the resources are outdated when my plugin is called. And that's why i need to better understand what happens and how i can force it when i need to.

解决方案

This is a Bug in almost all Eclipse versions, it happens without any reason. My eclipse 3.5.2 and 3.6.2 both meet this problem in someday. In my case, I need to copy modified .clj clojure source files to classes directory for immediate effection in a web app, now I have to set /src before /classes in CLASSPATH of web appserver startup script, It's solve my problem temporarily.

这篇关于什么时候Eclipse将资源复制到输出文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆