This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse & CVS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse & CVS" Watch "Eclipse & CVS" New topic
Author

Eclipse & CVS

Himanshu Jhamb
Ranch Hand

Joined: Aug 01, 2001
Posts: 134
Hi All.
I recently downloaded eclipse 3.0.1 to my windows 2000 machine and am trying to access an already existing CVS Repository on a red hat linux installation.

I was able to get to the repository using ssh2 and once checked out all the files. When I tried to open a .java file, it came up as 'Read-Only'. The problem is I just cannot seem to get around making it editable. My goal is to get the remote CVS working w/the local Eclipse installation.

I know there is a feature in the Preferences menu to get to the CVS Perspective options. I tried enabling the "Configure projects to use Watch/Edit on checkout" and then checked out the top level directory again, reopened the same file but it was still Read-Only and it would not let me edit it.

I have the following questions:
1) How do I make a file Writeable in this situation?
2) Can I check out individual files also OR does Eclipse allow only directory based checkouts (maybe this is a CVS limitation, not an Eclipse one - I am not sure)

Thanks in Advance!


Himanshu Jhamb<br />SCJP2 v1.2 (April 2002)<br />SCJP2 v1.4 (May 2002)
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30050
    
149

Himanshu,
You are correct that Eclipse only lets you check out a full project. As you noticed, you can view a file. This is helpful in determining whether you really want to check out the project. Eclipse doesn't let you edit the file (hence it is read only) because you will not be able to check it back end.

As far as I know, this is not a CVS limitation. From an Eclipse point of view, what would Eclipse do with the single file it checked out? It would need to put it in a project somewhere.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Himanshu Jhamb
Ranch Hand

Joined: Aug 01, 2001
Posts: 134
Hi,
Thanks for your response.

I understand that the user has to checkout the entire project at the beginning. The question really is:

I want to use Eclipse on my local machine to integrate w/a Linux backend. The code is in CVS on the Linux box. How can I checkout the code files, make my changes, and check them back in to CVS? Are you saying that a developer cannot commit his changes back to CVS with eclipse? If thats the case, then how does source controlling work w/Eclipse?

Thanks!
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30050
    
149

Originally posted by Himanshu Jhamb:
How can I checkout the code files, make my changes, and check them back in to CVS? Are you saying that a developer cannot commit his changes back to CVS with eclipse? If thats the case, then how does source controlling work w/Eclipse?

Himanshu,
I definitely didn't mean to imply that you can't commit changes back to CVS. I meant that you can't commit changes if you don't check out the project. The process is:
1) Check out project from stream (such as head stream)
2) Make changes
3) Team --> Synchronize with stream
4) Release changes
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Try "Team/Edit" from the files context menu.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
 
Consider Paul's rocket mass heater.
 
subject: Eclipse & CVS
 
Similar Threads
Eclipse and CVS
How to hide some ressources ?
mvn release:prepare fails when project was checked out by Eclipse
Unable to Checkout file in CVS-Linux
How to use CVS in Eclipse