File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
core/src/main/groovy/noe/server Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ import noe.common.newcmd.CmdBuilder
55import noe.common.newcmd.CmdCommand
66import noe.common.utils.Cmd
77import noe.common.utils.JBFile
8+ import noe.common.utils.Java
9+
810/**
911 * Class for manipulting with ApacheDS server
1012 * - Pure java LDAP, Kerberos server
@@ -62,6 +64,14 @@ abstract class ApacheDS extends ServerAbstract {
6264 opts+ = ' -Dcom.redhat.fips=false'
6365 cmdProps. put(" JAVA_OPTS" , opts)
6466 }
67+ if (Java . isJdkXOrHigher(" 17" )) {
68+ def opts = cmdProps. getOrDefault(" JAVA_OPTS" , " " )
69+ if (opts. size() > 0 ) {
70+ opts + = ' '
71+ }
72+ opts + = ' --add-exports=java.base/sun.security.util=ADD-UNNAMED'
73+ cmdProps. put(" JAVA_OPTS" , opts)
74+ }
6575 process = Cmd . startProcess(cmdCommand)
6676 process. consumeProcessOutput(System . out, System . err)
6777 waitForStartComplete()
You can’t perform that action at this time.
0 commit comments