From 0239779c04d0c6ec61ba4fc89db30b19628e0237 Mon Sep 17 00:00:00 2001 From: Ivan Dubrov Date: Thu, 24 Apr 2014 17:41:29 -0700 Subject: [PATCH] Use hg import for applying patch --- build.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 699e70dc..ea18a143 100644 --- a/build.gradle +++ b/build.gradle @@ -65,7 +65,11 @@ project('hotspot') { ant.delete(file: new File(file('hotspot'), it[1])) } } - ant.patch(patchfile: "../patches/dcevm-${hotspotTag}.patch", strip: 1) + // Use hg import since ant.patchfile requires 'patch' to be installed + exec { + executable 'hg' + args 'import', '--no-commit', "../patches/dcevm-${hotspotTag}.patch" + } } task compileFastdebug(type: InvokeMake) { -- 2.39.5