Eclipse 中的外部工具启动配置在哪里
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/452571/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Where are the external tools launch configurations in Eclipse
提问by user2427
I usually install and uninstall different versions of Eclipse for fun. I don't want to install many plugins. I prefer to start with fresh install to test the IDE.
为了好玩,我通常会安装和卸载不同版本的 Eclipse。我不想安装很多插件。我更喜欢从全新安装开始测试 IDE。
The problems comes when I have to config all the external tools that I always use (E.g. run jconsole).
当我必须配置我经常使用的所有外部工具(例如运行 jconsole)时,问题就出现了。
Also I want to backup my launch configurations.
另外我想备份我的启动配置。
Do you know where Eclipse save this launch configurations?
你知道 Eclipse 在哪里保存这个启动配置吗?
回答by VonC
As I said in this question "Which eclipse files belong under Version Control", the .launch xml files (launcher definition) are found in
正如我在这个问题中所说的“哪些 eclipse 文件属于版本控制”,.launch xml 文件(启动器定义)位于
[eclipse-workspace]\.metadata\.plugins\org.eclipse.debug.core\.launches
You can actually move them into your project directory:
when your project is refreshed, those configurations will be displayed in the "Run configuration" dialog.
That way, those launch parameter files can be also managed into a VCS within your other project files, instead being buried within the workspace metadata area.
您实际上可以将它们移动到您的项目目录中:
当您的项目刷新时,这些配置将显示在“运行配置”对话框中。这样,这些启动参数文件也可以管理到其他项目文件中的 VCS,而不是隐藏在工作区元数据区域中。
Warning: do uncheck the option "Delete configurations when associated resource is deleted" in the Run/Launching/Launch Configuration preference panel: it is common to soft-delete a project in order to import it back again, to force a reinitialization of the eclipse metadata,... but this option, if checked, will removed your detailed launch parameters!)
警告:请取消选中“运行/启动/启动配置”首选项面板中的“删除关联资源时删除配置”选项:软删除项目以便再次将其导入,以强制重新初始化 eclipse 是很常见的元数据,...但是如果选中此选项,将删除您的详细启动参数!)