有没有办法删除Eclipse运行配置上的元数据? [英] Is there a way to delete meta-data on Eclipse run configurations?
问题描述
MyClass
的Java类从 project1
到 project2
。然后我删除了 project1
。当我创建一个新的运行配置时,给出的名称是 MyClass(1)
。换句话说,它认为已经有一个名为 MyClass
的运行配置,所以新的配置必须附加一个数字。 (编辑:没有现有的 MyClass
运行配置,所以没有明确的附加号码的原因,其实我删除了我的所有运行配置。) 如何轻松清理元数据,并能够以最少的人工努力再次构建?
如果有一个元数据删除建议不仅仅是运行配置,如果没有创建大量的手动工作来使安装程序再次工作,这可能仍然是一个很好的解决方案。 >
编辑:问题可能是由于启动配置名为 MyClass - project1
在导出对话框中可见。 project1
不再存在,但是这个残余物仍然存在,绑定了类名称 MyClass
。我不知道运行配置和启动配置之间是否有区别。
AFAIK启动配置存储在:
$ {WORKSPACE} /。metadata / .plugins / org.eclipse.debug.core / .launches
查看现有配置,并删除那些对您不感兴趣的配置。
并重新启动Eclipse
I may have a corruption problem in Eclipse run configurations. This happened after I dragged (or copy-pasted, I don't remember) a Java class called MyClass
from project1
to project2
. Then I deleted project1
. When I create a new run configuration the name given is MyClass (1)
. In other words, it thinks there is already a run configuration called MyClass
so the new one will have to have a number appended. (Edit: There is no existing MyClass
run configuration so there is no apparent reason for the appended number. In fact, I deleted all of my run configurations.)
How can I easily clean up meta-data and be able to build again with minimal manual effort?
If there is a meta-data deletion recommendation that gets rid of more than just run configurations, that probably would still be a good solution if it does not create a lot of manual work to get setup to work again.
Edit: The problem might be caused by the fact that there is a launch configuration named MyClass - project1
visible in the export dialog. project1
no longer exists but this remnant lives on, tying up the class name MyClass
. I am not sure if there is a difference between a run configuration and a launch configuration.
AFAIK launch configurations are stored on:
${WORKSPACE}/.metadata/.plugins/org.eclipse.debug.core/.launches
Take a look to the existent configurations and remove those that are not interesting to you.
And restart Eclipse
这篇关于有没有办法删除Eclipse运行配置上的元数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!