eclipse 如何下载Eclipse的源代码?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15654475/
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
How to download Eclipse's Source code?
提问by Zombies
After spending awhile (their wiki pages for CSV access are no longer valid, the password provided does not work) and their SVN repositories do not contain the code to Eclipse IDE or the core plugins. The same problem also appears to apply to their GIT repositories. In particular I am looking for the source code of this coreplugin class (not even java specific):
花了一段时间后(他们用于 CSV 访问的 wiki 页面不再有效,提供的密码不起作用)并且他们的 SVN 存储库不包含 Eclipse IDE 或核心插件的代码。同样的问题似乎也适用于他们的 GIT 存储库。特别是我正在寻找这个核心插件类的源代码(甚至不是特定于 Java 的):
plugin: org.eclipse.debug.core
插件:org.eclipse.debug.core
class: org.eclipse.debug.core.model.IProcess
类:org.eclipse.debug.core.model.IProcess
Finally, I also tried to import the plugin as a fragment with source directory. There is no packaged source file. My last option is to decompile the class files, but please tell me there is a better repository I can access with read only permission? Again their wiki is either outdated or not pointing me to the core code but other project repos.
最后,我还尝试将插件作为带有源目录的片段导入。没有打包的源文件。我的最后一个选择是反编译类文件,但请告诉我有一个更好的存储库,我可以使用只读权限访问?同样,他们的 wiki 要么已经过时,要么没有将我指向核心代码,而是指向其他项目存储库。
采纳答案by Zombies
I found it, the tricky part was there are so many repos just listed there on their git repo page (http://git.eclipse.org/c/), you kind of have to inspect each page, it is listed under the category "platform", as opposed to all the plugin ID's being listed in alphabetic order:
我找到了它,棘手的部分是在他们的 git repo 页面(http://git.eclipse.org/c/)上列出了很多 repos ,你必须检查每个页面,它列在类别“平台”,而不是按字母顺序列出的所有插件 ID:
For org.eclipse.debug.core (where IProcess is), it is here:
对于 org.eclipse.debug.core(IProcess 所在的位置),它在这里:
http://git.eclipse.org/c/platform/eclipse.platform.debug.git/tree/org.eclipse.debug.core
http://git.eclipse.org/c/platform/eclipse.platform.debug.git/tree/org.eclipse.debug.core
回答by kayz1
You can also check this fresh presentation by Lars Vogel :) How to become an Eclipse committer in 20 minutes and fork the IDE
您还可以查看 Lars Vogel 的这个新演示 :)如何在 20 分钟内成为 Eclipse 提交者并 fork IDE
回答by Aaron Digulla
Depending on your needs, The Eclipse Common Build Infrastructure(CBI) might help.
根据您的需要,Eclipse Common Build Infrastructure(CBI) 可能会有所帮助。
The CBI project has converted Eclipse into a Tycho project which means you can get all the sources and compile them into a working Eclipse buildwith 2-3 commands.
CBI 项目已将 Eclipse 转换为 Tycho 项目,这意味着您可以使用 2-3 个命令获取所有源代码并将它们编译为可运行的 Eclipse 构建。
回答by Keppil
If you just want to look at the code you can always use GrepCode.
如果您只想查看代码,您可以随时使用GrepCode。
For example, the Eclipse 4.2 version of the class you ask for is found here: IProcess.java.
例如,您需要的类的 Eclipse 4.2 版本可以在这里找到:IProcess.java。