mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-08 08:52:12 +00:00
fix(java): use the project host classpath separator (#492)
This commit is contained in:
1 parent
f9a7c68897
commit
4a620122e8
9 files changed
+119
-12
No files matched your search
@@ -72,11 +72,11 @@ export function parseJavaArgs(args: readonly string[]): JavaCommandLine {
|
||||
}
|
||||
|
||||
/** The configuration with its placeholders and launcher resolved. */
|
||||
export function resolveJavaCommand(config: RunConfig, info: JavaLaunchInfo, pathSeparator = ":"): RunConfig {
|
||||
const cp = info.classPaths.join(pathSeparator);
|
||||
export function resolveJavaCommand(config: RunConfig, info: JavaLaunchInfo): RunConfig {
|
||||
const cp = info.classPaths.join(info.pathListSeparator);
|
||||
const args: string[] = [];
|
||||
if (info.modulePaths.length && !config.args.some((a) => a === "-p" || a === "--module-path"))
|
||||
args.push("--module-path", info.modulePaths.join(pathSeparator));
|
||||
args.push("--module-path", info.modulePaths.join(info.pathListSeparator));
|
||||
args.push(...config.args.map((a) => (a === CLASSPATH || a === TEST_CLASSPATH ? cp : a)));
|
||||
const command = config.command === "java" && info.javaExec ? info.javaExec : config.command;
|
||||
return { ...config, command, args };
|
||||
|
||||
Reference in new issue
Block a user