Downloading Source code

Peter Levart peter.levart at gmail.com
Wed Dec 30 08:05:54 UTC 2015



On 12/29/2015 10:56 AM, Andrew Haley wrote:
> On 28/12/15 14:37, Bahram Yarahmadi wrote:
>
>> 1 -Is there any other way (for exmaple download all files with a Dowload
>> manager directly or something like that ) ?
> I've never used a download manager, so I could not say.
> "hg clone" is the best way to do it, I think.

Mercurial has also these nice links that pack the current tip of a 
repository into a zip or tar.bz2/gz and allow downloading it as one file:

This is the 'root' repository of jdk8u:

http://hg.openjdk.java.net/jdk8u/jdk8u-dev/archive/tip.tar.bz2

or:

http://hg.openjdk.java.net/jdk8u/jdk8u-dev/archive/tip.zip

or:

http://hg.openjdk.java.net/jdk8u/jdk8u-dev/archive/tip.tar.gz


...you'll also need all other sub-repositories (for example, in zip format):

http://hg.openjdk.java.net/jdk8u/jdk8u-dev/corba/archive/tip.zip
http://hg.openjdk.java.net/jdk8u/jdk8u-dev/hotspot/archive/tip.zip
http://hg.openjdk.java.net/jdk8u/jdk8u-dev/jaxp/archive/tip.zip
http://hg.openjdk.java.net/jdk8u/jdk8u-dev/jaxws/archive/tip.zip
http://hg.openjdk.java.net/jdk8u/jdk8u-dev/jdk/archive/tip.zip (77 MB 
vs. ~500 MB if you clone the repo)
http://hg.openjdk.java.net/jdk8u/jdk8u-dev/langtools/archive/tip.zip
http://hg.openjdk.java.net/jdk8u/jdk8u-dev/nashorn/archive/tip.zip


But note that these are only the snapshots of source files - without 
repository history and metadata. So you'll not be able to pull further 
changes afterwards.


Regards, Peter

>> 2 -Do you suggest me to download jdk8u or jdk8 according to my job that I
>> want to do ?
> jdk8u
>
> Andrew.
>



More information about the jdk8u-dev mailing list