File tree Expand file tree Collapse file tree
src/main/fish/payara/server/start Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,12 +49,12 @@ export class StartTask {
4949
5050 for ( const jvmOption of jvmConfigReader . getJvmOptions ( ) ) {
5151 if ( JDKVersion . isCorrectJDK (
52- javaVersion ,
53- jvmOption . vendor ,
54- jvmOption . minVersion ,
55- jvmOption . maxVersion ,
56- jvmOption . option ,
57- javaHome ) ) {
52+ javaVersion ,
53+ jvmOption . vendor ,
54+ jvmOption . minVersion ,
55+ jvmOption . maxVersion ,
56+ jvmOption . option ,
57+ javaHome ) ) {
5858
5959 optList . push ( jvmOption . option ) ;
6060 }
@@ -172,7 +172,17 @@ export class StartTask {
172172 // do placeholder substitution
173173 opt = StringUtils . doSub ( opt . trim ( ) , varMap ) ;
174174 let splitIndex : number = opt . indexOf ( '=' ) ;
175- if ( splitIndex !== - 1 && ! opt . startsWith ( "-agentpath:" ) ) {
175+ if ( splitIndex === - 1 ) {
176+ // No '=' found; check for known prefix with colon
177+ let colonIndex = opt . indexOf ( ':' ) ;
178+ if ( colonIndex !== - 1 && opt . startsWith ( "-Xbootclasspath/a:" ) ) {
179+ name = opt . substring ( 0 , colonIndex + 1 ) + StringUtils . quote ( opt . substring ( colonIndex + 1 ) ) ;
180+ value = null ;
181+ } else {
182+ name = opt ;
183+ value = null ;
184+ }
185+ } else if ( ! opt . startsWith ( "-agentpath:" ) ) {
176186 // key=value type of option
177187 name = opt . substring ( 0 , splitIndex ) ;
178188 value = StringUtils . quote ( opt . substring ( splitIndex + 1 ) ) ;
You can’t perform that action at this time.
0 commit comments