Skip to content

Commit

Permalink
disable symbol link check on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
neetopia committed Jun 9, 2022
1 parent 7129a43 commit b191f40
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,11 @@ abstract class AbstractKotlinSymbolProcessingExtension(
is KSFileJavaImpl -> it.psi
else -> null
}?.virtualFile?.let { virtualFile ->
File(virtualFile.path).canonicalPath
if (System.getProperty("os.name").startsWith("windows", true)) {
virtualFile.canonicalPath ?: virtualFile.path
} else {
File(virtualFile.path).canonicalPath
}
} in newFileNames
}
incrementalContext.registerGeneratedFiles(newFiles)
Expand Down

0 comments on commit b191f40

Please sign in to comment.