Skip to content

Commit 82d61e4

Browse files
committed
Use test.systemProperty
1 parent 4e1a3b6 commit 82d61e4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/ElasticsearchTestBasePlugin.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,10 +298,9 @@ private static void configureEntitlements(Project project) {
298298

299299
// Agent
300300
if (agentFiles.isEmpty() == false) {
301-
var systemProperties = test.getExtensions().getByType(SystemPropertyCommandLineArgumentProvider.class);
302301
test.getInputs().files(agentFiles);
303-
systemProperties.systemProperty("es.entitlement.agentJar", agentFiles.getAsPath());
304-
systemProperties.systemProperty("jdk.attach.allowAttachSelf", true);
302+
test.systemProperty("es.entitlement.agentJar", agentFiles.getAsPath());
303+
test.systemProperty("jdk.attach.allowAttachSelf", true);
305304
}
306305

307306
// Bridge

0 commit comments

Comments
 (0)