Skip to content

Commit 72d636c

Browse files
authored
Merge branch 'master' into FISH-13145
2 parents e295a92 + 75dce34 commit 72d636c

1 file changed

Lines changed: 17 additions & 7 deletions

File tree

src/main/fish/payara/server/start/StartTask.ts

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff 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));

0 commit comments

Comments
 (0)