From 876cb8bfb4bd6ab62616a90607528160a8c65fd9 Mon Sep 17 00:00:00 2001 From: Alexander Jipa Date: Sun, 17 Jul 2016 03:43:34 -0400 Subject: [PATCH] fixes #1212: rocksdbjni maven build does not escape slashes in groovy script (#1213) using gmaven property so that script is not broken by embedding unescaped Windows-style path --- java/rocksjni.pom | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/rocksjni.pom b/java/rocksjni.pom index 0512df63e..0251d8f36 100644 --- a/java/rocksjni.pom +++ b/java/rocksjni.pom @@ -102,7 +102,7 @@ Xenu - String fileContents = new File("${project.basedir}/../include/rocksdb/version.h").getText('UTF-8') + String fileContents = new File(project.basedir.absolutePath + '/../include/rocksdb/version.h').getText('UTF-8') matcher = (fileContents =~ /(?s).*ROCKSDB_MAJOR ([0-9]+).*?/) String major_version = matcher.getAt(0).getAt(1) matcher = (fileContents =~ /(?s).*ROCKSDB_MINOR ([0-9]+).*?/)