diff --git a/core/src/test/java/org/elasticsearch/bootstrap/BootstrapForTesting.java b/core/src/test/java/org/elasticsearch/bootstrap/BootstrapForTesting.java
index 83ae87580bb..a7b9043f350 100644
--- a/core/src/test/java/org/elasticsearch/bootstrap/BootstrapForTesting.java
+++ b/core/src/test/java/org/elasticsearch/bootstrap/BootstrapForTesting.java
@@ -106,6 +106,13 @@ public class BootstrapForTesting {
if (Strings.hasLength(System.getProperty("tests.config"))) {
perms.add(new FilePermission(System.getProperty("tests.config"), "read,readlink"));
}
+ // jacoco coverage output file
+ if (Boolean.getBoolean("tests.coverage")) {
+ Path coverageDir = PathUtils.get(System.getProperty("tests.coverage.dir"));
+ perms.add(new FilePermission(coverageDir.resolve("jacoco.exec").toString(), "read,write"));
+ // in case we get fancy and use the -integration goals later:
+ perms.add(new FilePermission(coverageDir.resolve("jacoco-it.exec").toString(), "read,write"));
+ }
Policy.setPolicy(new ESPolicy(perms));
System.setSecurityManager(new TestSecurityManager());
Security.selfTest();
diff --git a/pom.xml b/pom.xml
index 1379d3b65c4..c25d62f1fc8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -47,7 +47,7 @@
2.5.3
1.6.2
1.2.17
- 0.7.2.201409121644
+ 0.7.5.201505241946
s3://download.elasticsearch.org/elasticsearch/staging/
@@ -646,6 +646,8 @@
${tests.showSuccess}
${tests.thirdparty}
${tests.config}
+ ${tests.coverage}
+ ${project.build.directory}
${tests.client.ratio}
${tests.enable_mock_modules}
${tests.assertion.disabled}
@@ -1415,7 +1417,8 @@ org.eclipse.jdt.ui.text.custom_code_templates=
- false
+
+ true