Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

attach javadoc to class jar

Status
Not open for further replies.

Stevoie

Programmer
Jun 7, 2001
68
IE
Hi all,

Does anyone know how i can attach the javadoc files to a jar file containing the class files. I can generate the javadoc on the source files.

The end result is that when you import the jar file in a ide, you get the javadoc comments when using a class in the jar.

Any ideas,

Thanx
Stevoie

StevoIE
 
You may specify a directory for the jar's to go:

javadoc -d <destination_dir> ...

and with jar, you may include a whole dir:

jar -uf xy.jar -C ./docs .

or dos:

jar -uf xy.jar -C .\docs .

if your <destination_dir> was 'docs'.

Whether an ide will find them will depend on the ide, where it expects them.
But you may have a look at a 3rd-party jar-file, for which this already works.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top