Skip to content

Commit a5316b8

Browse files
committed
Fixed extra leading slash of path on Windows.
Even the URL.path property is deprecated, but there is no other simple way to convert URL to local file path.
1 parent 7e0fd5a commit a5316b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Plugins/JavaCompilerPlugin/JavaCompilerPlugin.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ struct JavaCompilerBuildToolPlugin: BuildToolPlugin {
7777
executable: javaHome
7878
.appending(path: "bin")
7979
.appending(path: javac),
80-
arguments: javaFiles.map { $0.path(percentEncoded: false) } + [
81-
"-d", javaClassFileURL.path(),
80+
arguments: javaFiles.map { $0.path } + [
81+
"-d", javaClassFileURL.path,
8282
"-parameters", // keep parameter names, which allows us to emit them in generated Swift decls
8383
] + (config?.compilerVersionArgs ?? []),
8484
inputFiles: javaFiles,

0 commit comments

Comments
 (0)