kotlin-classes missing in Module.classroots()
已回答
I am trying to get the classroots of a given module. I use the below:
OrderEnumerator.orderEntries(module).recursively().classesRoots
I get all the classroots except "build/tmp/kotlin-classes". This is where kotlin compiled classes are present in an Android project.
I get "build/intermediates/javac" but not "build/tmp/kotlin-classes". Why is this missing?
Note: I also tried the below, but to no avail:
OrderEnumerator.orderEntries(project).recursively().classesRoots
请先登录再写评论。
I looked at the `.iml` file for the module and found the entry for `kotlin-classes`. I now have to do the below to obtain the classpath:
Is this the only way?
Henry,
To get the KotlinFacet instance, you can go with:
Hi Jakub, my primary question is How do I get all the classRoots of a module. I now understand that "OrderEnumerator.orderEntries" will only give me the order entries, but not the classpath mentioned in the KotlinFacet. I want all the classroots. How do I get that?