I am trying to generate java documentation for multiple packages so I have a single index.html, I can generate them fine for single packages by writing,
javadoc packages/mypackage1/program/*.java
but I can't get it to work for multiple packages. I tried using javadoc @packages but I get
error - cannot read packages <access is denied>
Any ideas would be great!!
javadoc -d [DESTINATION_FOLDER] -sourcepath [SOURCE_FOLDER] -subpackages [PACKAGE1]:[PACKAGE2]
For example, if your hierarchy is:
Then your command line will look like:
javadoc -d [DESTINATION_FOLDER] -sourcepath /home/my_project/src -subpackages com:fr