直接获取
https://github.com/LLLUZHAO/JavaSrc
使用git clone:
git clone https://github.com/LLLUZHAO/JavaSrc.git
安装
安装mercurial:
brew install mercurial
:brew install mercurial
==> Downloading https://homebrew.bintray.com/bottles/mercurial-5.3.1.catalina.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/84/84f3d1b2e5d2352627ac1a8c4c533f5f9f0f31cc5001e997440d123e7e43ae72?__gda__=exp=15
######################################################################## 100.0%
==> Pouring mercurial-5.3.1.catalina.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
zsh completions have been installed to:
/usr/local/share/zsh/site-functions
==> Summary
🍺 /usr/local/Cellar/mercurial/5.3.1: 649 files, 10.5MB
克隆仓库:
hg clone http://hg.openjdk.java.net/jdk8u/jdk8u-dev/
:hg clone http://hg.openjdk.java.net/jdk8u/jdk8u-dev/
destination directory: jdk8u-dev
requesting all changes
adding changesets
adding manifests
adding file changes
added 2451 changesets with 2962 changes to 142 files
new changesets cfeea66a3fa8:d210e2dde238
updating to branch default
86 files updated, 0 files merged, 0 files removed, 0 files unresolved
进入仓库安装:
cd jdk8u-dev
sh ./get_source.sh
:cd jdk8u-dev
:sh ./get_source.sh
# Repositories: corba jaxp jaxws langtools jdk hotspot nashorn
corba: hg clone http://hg.openjdk.java.net/jdk8u/jdk8u-dev/corba corba
jaxp: hg clone http://hg.openjdk.java.net/jdk8u/jdk8u-dev/jaxp jaxp
jaxp: requesting all changes
corba: requesting all changes
jaxp: adding changesets
corba: adding changesets
corba: adding manifests
jaxp: adding manifests
corba: adding file changes
jaxp: adding file changes
corba: added 1940 changesets with 4900 changes to 1392 files
corba: new changesets 55540e827aef:a38e61c49b56
corba: updating to branch default
corba: 1198 files updated, 0 files merged, 0 files removed, 0 files unresolved
jaxws: hg clone http://hg.openjdk.java.net/jdk8u/jdk8u-dev/jaxws jaxws
jaxws: requesting all changes
jaxws: adding changesets
jaxws: adding manifests
jaxws: adding file changes
jaxp: added 2029 changesets with 8268 changes to 4242 files
jaxp: new changesets 6ce5f4757bde:4b626df7c4ff
jaxp: updating to branch default
jaxp: 2072 files updated, 0 files merged, 0 files removed, 0 files unresolved
langtools: hg clone http://hg.openjdk.java.net/jdk8u/jdk8u-dev/langtools langtools
langtools: requesting all changes
langtools: adding changesets
langtools: adding manifests
langtools: adding file changes
jaxws: added 1831 changesets with 13828 changes to 6752 files
jaxws: new changesets 0961a4a21176:9502e19d094c
jaxws: updating to branch default
jaxws: 3735 files updated, 0 files merged, 0 files removed, 0 files unresolved
jdk: hg clone http://hg.openjdk.java.net/jdk8u/jdk8u-dev/jdk jdk
jdk: requesting all changes
jdk: adding changesets
jdk: adding manifests
langtools: added 3845 changesets with 22653 changes to 7194 files
langtools: new changesets 9a66ca7c79fa:196e2b0867e4
langtools: updating to branch default
langtools: 6396 files updated, 0 files merged, 0 files removed, 0 files unresolved
hotspot: hg clone http://hg.openjdk.java.net/jdk8u/jdk8u-dev/hotspot hotspot
hotspot: requesting all changes
hotspot: adding changesets
hotspot: adding manifests
hotspot: adding file changes
hotspot: added 9184 changesets with 43734 changes to 6046 files
hotspot: new changesets a61af66fc99e:dd05dac9563a
hotspot: updating to branch default
hotspot: 5083 files updated, 0 files merged, 0 files removed, 0 files unresolved
nashorn: hg clone http://hg.openjdk.java.net/jdk8u/jdk8u-dev/nashorn nashorn
nashorn: requesting all changes
nashorn: adding changesets
nashorn: adding manifests
nashorn: adding file changes
nashorn: added 2511 changesets with 11662 changes to 2993 files
nashorn: new changesets b8a1b238c77c:c923db271618
nashorn: updating to branch default
nashorn: 2774 files updated, 0 files merged, 0 files removed, 0 files unresolved
jdk: adding file changes
jdk: added 13928 changesets with 103521 changes to 29270 files
jdk: new changesets 37a05a11f281:6b0a8509f760
jdk: updating to branch default
jdk: 24689 files updated, 0 files merged, 0 files removed, 0 files unresolved
# Repositories: . corba jaxp jaxws langtools jdk hotspot nashorn
.: cd . && hg pull -u
corba: cd corba && hg pull -u
jaxp: cd jaxp && hg pull -u
jaxws: cd jaxws && hg pull -u
langtools: cd langtools && hg pull -u
jdk: cd jdk && hg pull -u
hotspot: cd hotspot && hg pull -u
nashorn: cd nashorn && hg pull -u
corba: pulling from http://hg.openjdk.java.net/jdk8u/jdk8u-dev/corba
.: pulling from http://hg.openjdk.java.net/jdk8u/jdk8u-dev/
jaxp: pulling from http://hg.openjdk.java.net/jdk8u/jdk8u-dev/jaxp
jaxws: pulling from http://hg.openjdk.java.net/jdk8u/jdk8u-dev/jaxws
langtools: pulling from http://hg.openjdk.java.net/jdk8u/jdk8u-dev/langtools
jdk: pulling from http://hg.openjdk.java.net/jdk8u/jdk8u-dev/jdk
hotspot: pulling from http://hg.openjdk.java.net/jdk8u/jdk8u-dev/hotspot
nashorn: pulling from http://hg.openjdk.java.net/jdk8u/jdk8u-dev/nashorn
langtools: searching for changes
langtools: no changes found
corba: searching for changes
corba: no changes found
.: searching for changes
jaxws: searching for changes
jaxws: no changes found
.: no changes found
jaxp: searching for changes
jaxp: no changes found
jdk: searching for changes
jdk: no changes found
nashorn: searching for changes
nashorn: no changes found
hotspot: searching for changes
hotspot: no changes found