File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse and CVS Version number Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse and CVS Version number" Watch "Eclipse and CVS Version number" New topic

Eclipse and CVS Version number

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
I am using Eclipse 3.0.2 with CVSNT.

I check out files from CVS server. Then I made some changes in local file, I commit it. So the local and remote file are updated.

But problem is ,say a file is " 1.1" in local. After commit and update, the file name will be " 1.2". I don't want to update the version number ("1.1"), because I just made some little changes.

How could I avoid this ?

Thanks in advance.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17423

I think you're confusing your version numbering with CVS's version numbering. Every time you check in something to CVS, its version number gets bumped. The CVS version ID is, if you will, the "primary key" (along with the file path/name) that allows retrieval of the file as of that update time, so it must always be unique, and CVS's numbering scheme ensures that it will be so.

Unfortunately, when you want to create a distributable release of your project, CVS has no scheme to support that. And, bear in mind that due to the fact that usually some parts of the system will be checked in with updates more than others, your "release 1.2" may actually contain an index.jsp v1.1, web.xml v1.4, struts-config.xml v1.4 and v1.2.

The way around this is to use CVS tags. Unfortunately, CVS doesn't permit a tag to be named "1.2", so you have to be creative and tag files something like "V1_2" instead.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Eclipse and CVS Version number
It's not a secret anymore!