From c98d0846bcce64310ae112f20c3d7351c73d30bc Mon Sep 17 00:00:00 2001 From: Ivan Dubrov Date: Mon, 28 Apr 2014 11:37:03 -0700 Subject: [PATCH] Automatic HotSpot repository detection (hard-coded for now) --- build.gradle | 3 +++ gradle.properties | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 85d497dd..efa1d056 100644 --- a/build.gradle +++ b/build.gradle @@ -36,6 +36,9 @@ project('hotspot') { task clone(description: 'Clone HotSpot repository') { onlyIf { !file('hotspot').exists() } doLast { + def hotspotRepository = hotspotTag.contains('jdk7') ? + 'http://hg.openjdk.java.net/jdk7u/jdk7u/hotspot' : + 'http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot' exec { workingDir '..' executable 'hg' diff --git a/gradle.properties b/gradle.properties index 14fef854..2ae43047 100644 --- a/gradle.properties +++ b/gradle.properties @@ -28,7 +28,3 @@ hotspotTag=jdk8u5-b13 #hotspotTag=jdk7u51-b13 #hotspotTag=jdk7u45-b08 #hotspotTag=jdk7u40-b43 - -# Repository to clone hotspot from -hotspotRepository=http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot -#hotspotRepository=http://hg.openjdk.java.net/jdk7u/jdk7u/hotspot -- 2.39.5