]> source.dussan.org Git - dcevm.git/commitdiff
Use hg import for applying patch
authorIvan Dubrov <idubrov@guidewire.com>
Fri, 25 Apr 2014 00:41:29 +0000 (17:41 -0700)
committerIvan Dubrov <idubrov@guidewire.com>
Fri, 25 Apr 2014 00:41:29 +0000 (17:41 -0700)
build.gradle

index 699e70dc9148028f0c6c858f9ec87f0526b66a8e..ea18a143869892f1df39e27bee73d13c63abaf5d 100644 (file)
@@ -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) {