Timo Drick
02/17/2025, 9:25 AMval rm = ModuleRootManager.getInstance(module)
val classPath = rm
.orderEntries()
.classesRoots
.map { it.presentableUrl }
How could i get it in Workspace Model. I am already be able to get the path to all dependencies but i am missing the path to the classes generated by this module itself:
module.dependencies
.filterIsInstance<LibraryDependency>()
.mapNotNull { currentSnapshot.resolve(it.library) }
.mapNotNull { library ->
library.roots.find {
it.type == LibraryRootTypeId.COMPILED
}?.url?.presentableUrl
}
My experiments with module.contentRoots and module.sourceRoots show that this do not contain the correct path just some intermediate folders where resources are generated.