david.colais
david.colais

Reputation: 619

Need to Set Up Versioning for a Java EE app

I am asked to set up a version control system for a unix server which hosts a Java EE application.

I have had no experience in setting up a version control for any such systems.

Usually are we suppose to set up the version control like CVS or GIT for the entire contents of the unix server or only the Java EE parts of the application like JSP, Servlets etc.

Usually what files are supposed to be considered while creating the version control.

Which among CVS or GIT whould be a more suitable version control system in my case.

And which one would be a better choice among the two and which one would be simpler to set up as I dont have experience on either of them and the learning curve for learning eihter of them for setting up the same.

Upvotes: 0

Views: 106

Answers (1)

JB Nizet
JB Nizet

Reputation: 691715

It's unusual to store binaries or "the contents of a server" into a VCS. They're typically used to store source files, which can then be used to build and deploy the application.

Every source file of an app is supposed to be in the VCS. And by source file, I also mean resources (like images, script files, CSS files, etc.), config files, build scripts, etc., but not artifacts generated by the build such as jar or war files.

Asking which is the best system between CVS and Git is like asking which is the best between a Ford T and a new Beetle. Nobody uses CVS anymore, because much progress has been done in VCSs since CVS. It's obsolete now. You might consider Mercurial or Subversion, but definitely not CVS.

Upvotes: 3

Related Questions