I use an ANT build file to build my project and also generate the JavaDocs with it. Therefore I use the “javadoc”-command from ANT. Until now I have the version number inserted directly in the .java-file with the “@version”-literal. So if I want to increase the version number I have to open every .java-file and change the number.
Is it possible to define the version number once in the ANT file and let ANT insert this version number into the JavaDocs itself? How can you do this?
I use an ANT build file to build my project and also generate the
Share
Looking at the available options of the JavaDoc task I would use the
Headeratribute/element which allows to include HTML text defined in every generated file. The HTML text is defined in the the ANT task similar to thedoctitleattribute:http://ant.apache.org/manual/Tasks/javadoc.html