From: Ivan Dubrov Date: Fri, 25 Apr 2014 00:41:29 +0000 (-0700) Subject: Use hg import for applying patch X-Git-Tag: light-jdk8u5+36~28 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0239779c04d0c6ec61ba4fc89db30b19628e0237;p=dcevm.git Use hg import for applying patch --- 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) {