info on javadoc version tag...
Hi,
I'm writing javadoc comments for a program.
I said me if it is possible to automatically increment version tag, every time I edit a file, instead of manually do it.
I've found on the net this string:
@version %I%, %G%
but I'm a bit ocnfusing on it.
Thank you in advance.
MargNat
P.S.: I've moved this topic from the "desktop application forum"
[406 byte] By [
MargNata] at [2007-11-26 14:19:00]

Too bad you didn't post in the correct forum, the Javadoc Tool Forum:
If you had, you would have seen this thread that says why it won't work:
http://forum.java.sun.com/thread.jspa?threadID=5119403&tstart=0
(of course, you could also have found the answer by a forum search)
OK,
thank you very much.
The fact is that I've done more different search before posting, but I've obtained no useful results since the search engine seems to not well work with @ and % symbols.
Anyhow I've understood I need a source code control system, but how can I install one?
I've a stand-alone program builded by myself so I needn't of sharing my project.
I want an SCCS that works locally.
Thank you in advance.
A version control system not only helps out in shared development but also on keeping track of revisions of code, and that would be the only reason to actually have a version-tag in Javadoc. :)
For simple projects, you could use CVS, as this does not need much of installation. Best google for "setting up cvs" or similar and pick the site best matching your environment.
Subversion would be another option.
Further, if it is going to be an open source project in the end, you might want to register it at sourceforge or similar hosting providers, as they also provide access to CVS and SVN servers. So you wouldn't have to hassle with setup and installation details.
Thank you shultz,very useful info.I've assigned you duke dollar.MargNat
You're welcome.
Oh, btw., read the docs the revision system of your choice on how to activate keyword expansion, as this would be what is needed for replacing things like $Id$ etc. (I'm not sure about the %-notation). In cvs, this is done by setting the file's keyword mode. In subversion it's a property.
Hi schulz,
Now I'm installed cvs.1.11.22 with Tortoise cvs client.
Because I' ve apache server installed I've configured cvs to work locally.
Now, How must I do to integrate cvs and javadoc?
that is, how must I do to set file's keyword mode?
Thank you very much again.
MargNat
I don't use Tortoise, so I cannot tell. But I am sure, it supports setting the files' keyword modes. Maybe, Tortoise's help will tell you, when searching for "keyword mode".
Hm, actually, on their webpage I found at least one interesting thing: how to set up a local, personal CVS (no need for Apache etc.):
http://www.tortoisecvs.org/faq.shtml#cvsinit
The rest of how to set the keyword mode should be within the User's Guide, which, I think, has been installed together with TortoiseCVS. If you are using an IDE like eclipse or IntelliJ, these provide CVS features, too.