如何克隆OpenJDK Java 8存储库?

时间:2021-09-25 21:06:25

How do I clone the OpenJDK repository using mercurial?

如何使用mercurial复制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中开发的内容,并希望在可能的情况下进行合作。

2 个解决方案

#1


15  

The repository is linked on http://openjdk.java.net/. Clone it and execute theget_source.sh script.

存储库链接到http://openjdk.java.net/。克隆它并执行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存储库和如何贡献的指南也是可用的。

#2


3  

Have a look at the README of the version you want to clone.

看看你想克隆的版本的README。

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.

实际上,要克隆大多数源代码,这些源代码被分成多个子存储库。

#1


15  

The repository is linked on http://openjdk.java.net/. Clone it and execute theget_source.sh script.

存储库链接到http://openjdk.java.net/。克隆它并执行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存储库和如何贡献的指南也是可用的。

#2


3  

Have a look at the README of the version you want to clone.

看看你想克隆的版本的README。

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.

实际上,要克隆大多数源代码,这些源代码被分成多个子存储库。