Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove R.java from JavaDoc

I tried to generate Java-documentation using eclipse then previewed my JavaDocumenttation using the 'Preview attached JavaDoc in Browser' option.

All the auto generated android classes such as R.drawable are present. How can I remove them? Should I remove them?

enter image description here

like image 700
Declan McKenna Avatar asked Apr 27 '12 16:04

Declan McKenna


People also ask

How do I uninstall R Java?

Close your app in an Android Studio/Eclipse . Go to your workspace where you have the project. Open that R. jave file in notepad and remove the "/" symbol then save it.

How do I use Javadoc in Eclipse?

Step 1 − Open eclipse, select the option Project →Generate Javadoc. Step 2 − Select the javadoc.exe file from the bin folder of java installation directory, select the destination folder for the generated java doc and select Next. finish button.


1 Answers

Within eclipse, when I click generate Javadoc, it brings up a wizard, with the option to select which classes/packages I want generated, from which I exclude gen (which contains the R.java)

enter image description here

As for whether or not you should, I would recommend excluding the entire gen package/source folder as it isn't really relevant info for anyone reading your documentation

like image 104
JRaymond Avatar answered Oct 10 '22 06:10

JRaymond