Always runEngineDistrubtion with -ea (#8915)

This commit is contained in:
Jaroslav Tulach 2024-02-01 09:07:43 +01:00 committed by GitHub
parent eeaddbc434
commit 3b40158efc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -278,7 +278,9 @@ object DistributionPackage {
pb.command(all) pb.command(all)
if (args.contains("--debug")) { if (args.contains("--debug")) {
all.remove("--debug") all.remove("--debug")
pb.environment().put("JAVA_OPTS", WithDebugCommand.DEBUG_OPTION) pb.environment().put("JAVA_OPTS", "-ea " + WithDebugCommand.DEBUG_OPTION)
} else {
pb.environment().put("JAVA_OPTS", "-ea")
} }
pb.inheritIO() pb.inheritIO()
val p = pb.start() val p = pb.start()