Nick
Nick

Reputation:

How can I filter some attributes/text while generating javadocs?

I want to have custom attributes in javadoc like "@owner" "@since-version" which I do not want to be inlcuded in javadocs. is there a way around this?

Upvotes: 1

Views: 185

Answers (2)

VonC
VonC

Reputation: 1324148

To offer another solution:

If you are generating javadoc with the Ant javadoc task, you can add a nested 'tag' element with an 'enable=false' attribute to make sure this tag is ignored.

Upvotes: 0

yawmark
yawmark

Reputation: 1944

javadoc tool documentation:

"Some developers put custom tags in the source code that they don't always want to output. In these cases, it is important to list all tags that are present in the source code, enabling the ones you want to output and disabling the ones you don't want to output. The presence of X disables the tag, while its absence enables the tag. "

Upvotes: 1

Related Questions