Skip to content

Commit 14a1b22

Browse files
wenytang-msCopilot
andauthored
Update scripts/buildJdtlsExt.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 6d4941c commit 14a1b22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/buildJdtlsExt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const jvmOptions = [
1616

1717
// Set MAVEN_OPTS environment variable with JVM options
1818
const env = { ...process.env };
19-
env.MAVEN_OPTS = (env.MAVEN_OPTS || '') + ' ' + jvmOptions;
19+
env.MAVEN_OPTS = env.MAVEN_OPTS ? env.MAVEN_OPTS + ' ' + jvmOptions : jvmOptions;
2020

2121
const mvnCommand = `${mvnw()} clean package`;
2222
cp.execSync(mvnCommand, {cwd:server_dir, stdio:[0,1,2], env: env} );

0 commit comments

Comments
 (0)