You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in the past version I mean ksp 1.7.10 I was able to get ksp output directory using the code below but right now there is no way to achieve it using old method because I think ksp use daemon to output ksp while using codegenerator if Im not wrong.
private fun getBuildDir(): String {
val pathOf = codeGenerator::class.java
.getDeclaredMethod("pathOf", String::class.java, String::class.java, String::class.java)
val stubFile = pathOf.invoke(codeGenerator, "", "a", "kt") as String
//throw Exception("ERROR: Parent -> "+ File(stubFile).absolutePath)
return if (System.getProperty("os.name").contains("win", true)) {
File(stubFile).parentFile.parent.replace("\\", "/")
} else {
File(stubFile).parentFile.parent
}
}
in the past version I mean ksp 1.7.10 I was able to get ksp output directory using the code below but right now there is no way to achieve it using old method because I think ksp use daemon to output ksp while using codegenerator if Im not wrong.
complete code is available over here
The text was updated successfully, but these errors were encountered: