New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I select a Java file? #2590
Comments
Hi! Not sure why the behaviour is different for kotlin and java files. Out of curiosity, is there any specific reason you need to select only one file? Pretty sure it works if you specify the folder path, like sourceRoots.setFrom(file("./xxx/xxx")) |
Yes, a java folder path is ok but I only need partly java files of some folders , if using the whole folder is too many classes to my users. |
FWIW, you can also utilize |
I've tried with this:
but it still doesn't work. |
I solved the problem by modifying the source file (org.jetbrains.dokka.base.translators.psi.DefaultPsiToDocumentableTranslator). |
Fixed in #2604, will be released in 1.7.20 |
Workaround for bug Kotlin/dokka#2590 The way it's solved is by copying the individual java files to a separate folder which then is added as part of the Dokka sourceset
Workaround for bug Kotlin/dokka#2590 The way it's solved is by copying the individual java files to a separate folder which then is added as part of the Dokka sourceset
Workaround for bug Kotlin/dokka#2590 The way it's solved is by copying the individual java files to a separate folder which then is added as part of the Dokka sourceset
Question
when I select a kotlin file ,like this:
sourceRoots.setFrom(file("./xxx/xxx.kt"))
it works well.
But when i select a java file :
sourceRoots.setFrom(file("./xxx/xxxx.java"))
it not woking .
Task:dokkaHtml
Installation
The text was updated successfully, but these errors were encountered: