How to get a specific tag from Opne jdk source control.

David Holmes david.holmes at oracle.com
Sun Sep 22 23:08:08 UTC 2019


Hi,

On 22/09/2019 11:06 pm, Moshe Zuisman wrote:
> Hi.
> I need to build open JDK jdk8u 222
> <https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/tag/jdk8u222-b10>
> .
> I know that I can download precompiled binary distro of this version. But I
> need to compile it at our site.
> Question is - how can I get source of it?
> I am going to :
> https://hg.openjdk.java.net/jdk8u/jdk8u/tags then to jdk8u222-ga
> <https://hg.openjdk.java.net/jdk8u/jdk8u/rev/eeeabadc6bf0>
> and download  zip file  with source directory.
> Then perform "get_sources.sh" and build it...
> When I perform java -version
> I get::
> [jdkbuild at vl-tlv-ctm-dv7j jdk8u-eeeabadc6bf0]$
> jdk8u/build/linux-x86_64-normal-server-release/images/j2re-image/bin/java
> -version
> openjdk version "1.8.0-internal"
> OpenJDK Runtime Environment (build
> 1.8.0-internal-jdkbuild_2019_09_22_17_42-b00)
> OpenJDK 64-Bit Server VM (build 25.71-b00, mixed mode)
> 
> and not something like:  openjdk version "1.8.0-b222"
> that I get if I download binary distro from AdoptOpenJDK site...
> What am I doing wrong?

The build number (and other version info) is set as a configure arg when 
you do the build, it isn't hard-coded into the sources.

David



More information about the build-dev mailing list