cvs version vs. class version (javadoc)

Hey. I have a simple question:

If one uses cvs, every source file in the project have a current version in the cvs. This version number is incremented when the source file is changed and re-committed. It is also possible to specify the version of a class in it's javadoc, using the @version tag. Is it possible to combine the two, making the @version tag's value in the javadoc change as the version of the file in the cvs changes?

Best regards,
Rune Vistnes.

5 comments

/**

  • Class description.

*

  • @author me

  • @version $Id: SomeClass.java,v 1.4 2004/10/21 16:56:26 me Exp $

*/
class SomeClass {

}


You can also change the Id tag to another more/less descriptive one - only
the version number for example.



0

/**

  • Class description.

*

  • @author me

  • @version $Id: SomeClass.java,v 1.4 2004/10/21 16:56:26 me Exp $

*/
class SomeClass {

}


You can also change the Id tag to another more/less descriptive one - only
the version number for example.



0

Where can I change the Id tag? And how can I make the date used not be the UTC one, but the one that is actually stored in the cvs repository? For example, I commited a change at 14:54:33, but it says 13:54:33 in the javadoc.

0

Actually, the one you want is
@version $Revision$

This will give you the v 1.4 part.

Norris Shelton
Sun Certified Java Programmer




Carlos Costa e Silva wrote:

/**

  • Class description.

*

  • @author me

  • @version $Id: SomeClass.java,v 1.4 2004/10/21 16:56:26 me Exp $

*/
class SomeClass {

>

}

>
>

You can also change the Id tag to another more/less descriptive one -
only the version number for example.

>
>
>

0

You can't configure it, because it is created by the CVS server.

Tom

0

Please sign in to leave a comment.