Merge branch '3.4.x'

This sets the default value of 'server.tomcat.use-apr' to 'NEVER'.

Closes gh-44705
This commit is contained in:
Moritz Halbritter
2025-03-13 08:58:18 +01:00
10 changed files with 160 additions and 42 deletions

View File

@@ -67,15 +67,12 @@ class LoaderIntegrationTests {
.withLogConsumer(this.output)
.withCopyFileToContainer(MountableFile.forHostPath(findApplication().toPath()), "/app.jar")
.withStartupCheckStrategy(new OneShotStartupCheckStrategy().withTimeout(Duration.ofMinutes(5)))
.withCommand(command(javaRuntime));
.withCommand(command());
}
private String[] command(JavaRuntime javaRuntime) {
private String[] command() {
List<String> command = new ArrayList<>();
command.add("java");
if (javaRuntime.version == JavaVersion.TWENTY_FOUR) {
command.add("--enable-native-access=ALL-UNNAMED");
}
command.add("-jar");
command.add("app.jar");
return command.toArray(new String[0]);

View File

@@ -90,15 +90,12 @@ class LoaderIntegrationTests {
.withLogConsumer(this.output)
.withCopyFileToContainer(findApplication(name, classifier), "/app.jar")
.withStartupCheckStrategy(new OneShotStartupCheckStrategy().withTimeout(Duration.ofMinutes(5)))
.withCommand(command(javaRuntime));
.withCommand(command());
}
private String[] command(JavaRuntime javaRuntime) {
private String[] command() {
List<String> command = new ArrayList<>();
command.add("java");
if (javaRuntime.version == JavaVersion.TWENTY_FOUR) {
command.add("--enable-native-access=ALL-UNNAMED");
}
command.add("-jar");
command.add("app.jar");
return command.toArray(new String[0]);