From 79cc3c2dd049a9430c357f834f2d26fb934952d7 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Tue, 19 Jan 2016 18:49:47 -0500 Subject: [PATCH] set -Djna.nosys when running tests. This is consistent with what happens in elasticsearch.sh/.bat, and it means tests will work even if there is a crazy "system" JNA installed on the machine. --- .../src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy | 1 + 1 file changed, 1 insertion(+) diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy b/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy index 3cf1ccce824..ce2ecaff8cf 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy @@ -372,6 +372,7 @@ class BuildPlugin implements Plugin { systemProperty 'tests.artifact', project.name systemProperty 'tests.task', path systemProperty 'tests.security.manager', 'true' + systemProperty 'jna.nosys', 'true' // default test sysprop values systemProperty 'tests.ifNoTests', 'fail' systemProperty 'es.logger.level', 'WARN'