简体   繁体   English

如何克隆OpenJDK Java 8存储库?

[英]How to clone the OpenJDK Java 8 repository?

How do I clone the OpenJDK repository using mercurial? 如何使用Mercural克隆OpenJDK存储库?

I would like to clone the Java source code from there to understand what they are developing in JDK8 and would like to co-operate if possible. 我想从那里克隆Java源代码,以了解它们在JDK8中正在开发什么,并希望在可能的情况下进行合作。

The repository is linked on http://openjdk.java.net/ . 该存储库在http://openjdk.java.net/上链接。 Clone it and execute the get_source.sh script. 克隆它并执行get_source.sh脚本。

$ hg clone http://hg.openjdk.java.net/jdk8/jdk8
$ cd jdk8 && sh get_source.sh

A guide to the OpenJDK repositories and a How to contribute are available, too. 还提供了有关OpenJDK存储库的指南和“ 如何贡献”

Have a look at the README of the version you want to clone. 查看您要克隆的版本的自述文件

After doing what another answer said : 经过另一个回答说

hg clone http://hg.openjdk.java.net/jdk8/jdk8

you also need to run: 您还需要运行:

sh get_source.sh

to actually clone most of the source code, which is split into multiple sub-repositories. 实际克隆大多数源代码,这些源代码分为多个子存储库。

Related: How can I checkout the OpenJDK from the mercurial repository? 相关: 如何从Mercurial存储库中签出OpenJDK?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM