Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,12 @@ private static void withPlugin(Build build, String artifactId, Consumer<? super
private static void configureAgentForSurefire(Plugin surefirePlugin, String agentArgument) {
updatePluginConfiguration(surefirePlugin, (exec, configuration) -> {
Xpp3Dom systemProperties = findOrAppend(configuration, "systemProperties");
Xpp3Dom surefireArgLine = findOrAppend(configuration, "argLine");
Xpp3Dom agent = findOrAppend(systemProperties, NATIVEIMAGE_IMAGECODE);
agent.setValue("agent");
Xpp3Dom argLine = new Xpp3Dom("argLine");
argLine.setValue(agentArgument);
String testArgLine = surefireArgLine.getValue() == null ? "" : surefireArgLine.getValue() + " ";
argLine.setValue(testArgLine + agentArgument);
configuration.addChild(argLine);
findOrAppend(configuration, "jvm").setValue(getGraalvmJava());
});
Expand Down