This is an automated email from the ASF dual-hosted git repository.
rzo1 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomee.git
The following commit(s) were added to refs/heads/master by this push:
new b14d18cf6e TOMEE-3892 - Don't add "-ea" if "-da" is present
b14d18cf6e is described below
commit b14d18cf6e68fec020dfef96156ca3771ebeaad4
Author: Richard Zowalla <[email protected]>
AuthorDate: Fri Apr 8 15:47:10 2022 +0200
TOMEE-3892 - Don't add "-ea" if "-da" is present
---
.../src/main/java/org/apache/openejb/config/RemoteServer.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git
a/container/openejb-core/src/main/java/org/apache/openejb/config/RemoteServer.java
b/container/openejb-core/src/main/java/org/apache/openejb/config/RemoteServer.java
index 09d4ac0847..52b5245e66 100644
---
a/container/openejb-core/src/main/java/org/apache/openejb/config/RemoteServer.java
+++
b/container/openejb-core/src/main/java/org/apache/openejb/config/RemoteServer.java
@@ -339,7 +339,10 @@ public class RemoteServer {
addIfSet(argsList, "java.protocol.handler.pkgs");
}
- argsList.add("-ea");
+ if(!addedArgs.containsKey("-da")) {
+ argsList.add("-ea");
+ }
+
argsList.add("-classpath");
final StringBuilder cp = new
StringBuilder(bootstrapJar.getAbsolutePath()).append(ps).append(juliJar.getAbsolutePath());