Answers:
它能做什么:
如果设置为“ true”,则OSGi框架和Eclipse运行时使用的所有缓存数据都将被清除。这将清除用于存储捆绑软件依赖关系解析和Eclipse扩展注册表数据的缓存。使用此选项将强制eclipse重新初始化这些缓存。
如何使用它:
eclipse.ini
位于Eclipse安装目录中的文件,并-clean
作为第一行插入。-clean
为第一个参数的快捷方式。-clean
参数调用Eclipse可执行文件。此步骤的优点是,您可以保留脚本,并在每次要清理工作区时都使用它。您可以将其命名为eclipse-clean.bat
(或eclipse-clean.sh
)。(摘自:http : //www.eclipsezone.com/eclipse/forums/t61566.html)
其他eclipse命令行选项:http : //help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options.html
对于干净模式:像这样启动平台
eclipse -clean
就这样。该平台将清除一些缓存的OSGi软件包信息,如果您手动安装新插件或删除未使用的插件,它会有所帮助或建议使用。
它不会影响任何与工作空间相关的数据。
对于Mac OS X Yosemite,我可以使用open命令。
Usage: open [-e] [-t] [-f] [-W] [-R] [-n] [-g] [-h] [-b <bundle identifier>] [-a <application>] [filenames] [--args arguments]
Help: Open opens files from a shell.
By default, opens each file using the default application for that file.
If the file is in the form of a URL, the file will be opened as a URL.
Options:
-a Opens with the specified application.
-b Opens with the specified application bundle identifier.
-e Opens with TextEdit.
-t Opens with default text editor.
-f Reads input from standard input and opens with TextEdit.
-F --fresh Launches the app fresh, that is, without restoring windows. Saved persistent state is lost, excluding Untitled documents.
-R, --reveal Selects in the Finder instead of opening.
-W, --wait-apps Blocks until the used applications are closed (even if they were already running).
--args All remaining arguments are passed in argv to the application's main() function instead of opened.
-n, --new Open a new instance of the application even if one is already running.
-j, --hide Launches the app hidden.
-g, --background Does not bring the application to the foreground.
-h, --header Searches header file locations for headers matching the given filenames, and opens them.
这为我工作:
open eclipse.app --args clean
这将清除用于存储捆绑包依赖关系解析和Eclipse扩展注册表数据的缓存。使用此选项将强制eclipse 重新初始化这些缓存。
eclipse -clean
在干净模式下运行Eclipse的两种方法。
1)在Eclipse.ini文件中
2)在命令提示符下(cmd / command)