We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef4fbe5 commit 4486e6cCopy full SHA for 4486e6c
1 file changed
src/cli.ts
@@ -1,4 +1,4 @@
1
-import { resolve } from 'path';
+import path, { resolve } from 'path';
2
import { writeFileSync } from 'fs';
3
import getMavenModules from "./find-maven-modules";
4
import { buildClasspath } from './classpath-builder';
@@ -112,7 +112,7 @@ async function main() {
112
console.log('项目完整依赖数:', fullClasspath.length);
113
const classpathFile = resolve(".cache", "classpath.cache");
114
115
- const classPathString = fullClasspath.map((item) => `file:/${item.replace(/\\/g, '/')}`).join(' ')
+ const classPathString = fullClasspath.map((item) => `file://${path.normalize(item).replace(/\\/g, '/')}`).join(' ')
116
const fullString = `Class-Path: ${classPathString}`;
117
const lines: string[] = [];
118
let remaining = fullString;
0 commit comments