-clean参数在Eclipse IDE中是什么意思? [英] What does the -clean parameter mean in the Eclipse IDE?

查看:436
本文介绍了-clean参数在Eclipse IDE中是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到,手动安装一些Eclipse插件后,应该使用 -clean 参数来启动Eclipse。为什么或它做什么?



我要做别的事吗?



此问题特别适用于Eclipse Galileo和Helios。

解决方案

p>不,你可以简单地启动eclipse。



文章 keep eclipse running clean 详细说明-clean选项的各种用法。


修复灰尘的工作空间的最简单方法是将eclipse.exe可执行文件的-clean命令行参数。让我们来看看Eclipse帮助文档告诉我们这个命令:



如果设置为true,OSGi框架和eclipse运行时使用的任何缓存数据将擦干净这将清理用于存储捆绑依赖解析和eclipse扩展注册表数据的缓存。使用此选项将强制eclipse重新初始化这些缓存。



-clean 参数是一次性使用标志,意味着您运行Eclipse后它可以删除它,直到你再次需要它

如果你喜欢离开它设置唯一的副作用,使用它有时间增加启动时间(2-3倍更长)哪有些人不介意



现在,回到上面的描述,这可能听起来不是很多,我不得不说,你会惊讶于什么使用-clean可以修复有时;一些真正随机的事情。有三种简单的方法可以使用这个参数:




  • 编辑位于您的 Eclipse安装目录中的eclipse.ini文件并将其添加为第一行的第一个参数。

  • 编辑用于启动Eclipse的快捷方式,并将其添加为第一个参数。

  • 创建使用-clean参数调用Eclipse可执行文件的批处理或shell脚本。此步骤的优点是您可以保留脚本,并在每次清除工作区时使用它。你可以命名为eclipse-clean.bat(或eclipse-clean.sh)。



I have read that after installing some Eclipse plugins manually, one should use the -clean parameter to start Eclipse. Why or what does it do?

Do I have to do something else?

This question applies to Eclipse Galileo and Helios, in particular.

解决方案

No you can simply launch eclipse.

The article "keeping eclipse running clean" details the various usages for "the -clean" option.

The easiest way to fix up a dusty workspace is using the -clean command line argument to the eclipse.exe executable. Let's take a look at what the Eclipse help docs tell us this command does:

if set to "true", any cached data used by the OSGi framework and eclipse runtime will be wiped clean. This will clean the caches used to store bundle dependency resolution and eclipse extension registry data. Using this option will force eclipse to reinitialize these caches.

The -clean argument is a one-time use flag, meaning after you have run Eclipse using it, you can remove it until you need it again.
If you prefer to leave it set the only side effect of using it ever time are increased startup times (2-3x longer) which some folks do not mind.

Now, back to the description above, this may not sound like much, I have to say that you would be amazed at what using -clean can fix up sometimes; some really random things. There are three easy ways you can go about using this argument:

  • Edit the eclipse.ini file located in your Eclipse installation directory and add it as the first argument on the first line.
  • Edit the shortcut you use to start Eclipse and add it as the first argument.
  • Create a batch or shell script that calls the Eclipse executable with the -clean argument. The advantage to this step is you can keep the script around and use it each time you want to clean out the workspace. You can name it something like eclipse-clean.bat (or eclipse-clean.sh).

这篇关于-clean参数在Eclipse IDE中是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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