Skip to content

Commit

Permalink
Remove JAVA_TOOL_OPTIONS when running platform tooling supports tests
Browse files Browse the repository at this point in the history
When a user has the JAVA_TOOL_OPTIONS set in their environment, java will print
"Picked up JAVA_TOOL_OPTIONS: ..." on the error stream
This leads to failure in some of the Platform Tooling Tests

Co-authored-by: Marc Philipp <[email protected]>
  • Loading branch information
filiphr and marcphilipp authored Nov 23, 2024
1 parent 3d73144 commit 945e4b9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ tasks.test {
dependsOn(normalizeMavenRepo)
jvmArgumentProviders += MavenRepo(project, normalizeMavenRepo.map { it.destinationDir })
}
environment.remove("JAVA_TOOL_OPTIONS")

jvmArgumentProviders += JarPath(project, thirdPartyJarsClasspath.get(), "thirdPartyJars")
jvmArgumentProviders += JarPath(project, antJarsClasspath.get(), "antJars")
Expand Down

0 comments on commit 945e4b9

Please sign in to comment.