DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Java (http://www.daniweb.com/forums/forum9.html)
-   -   What is the Use of Apache Ant and CVS in the Java Development...? (http://www.daniweb.com/forums/thread29389.html)

gokul Jul 30th, 2005 7:26 am
What is the Use of Apache Ant and CVS in the Java Development...?
 
Hi,

i am heading to develop one chatting application in JMF with JAIN-SIP API.. In stead of refering some sites, they talked about Apache Ant and CVS... WHats that..?

for what purpose we need that in the Java Application Development..?

How to use that in that..?

i saw some reference files of Ant and CVS..
but i couldn't understand that..

pls help me..

jwenting Jul 30th, 2005 6:22 pm
Re: What is the Use of Apache Ant and CVS in the Java Development...?
 
Ant is a build tool, similar to what make does for C.
It helps automate builds, making them far easier to perform in a way that can be easily reproduced.
Little use if you have a few files, but when your project runs into the hundreds or thousands of files it gets very handy.
Plus it can help in building your jars for you and for automatically running your unit tests and reporting the results.

CVS is for version control of your sources. Makes it easy to store revisions both as a backup (if you do it on a different drive or machine) and to have access to historical versions (maybe if you need to revert to what you had yesterday because you made a serious blunder).

I use both a lot, and plan to integrate them even more so that I can have ant build a jar of my applications directly from CVS for example.
http://www.pragmaticprogrammer.com/ have excellent books.
Get their books on CVS and project automation, they'll open your eyes.
http://www.pragmaticprogrammer.com/s...uto/index.html
http://www.pragmaticprogrammer.com/s.../vc/index.html

EBook versions cost about $20 each, well worth the investment.
Paper versions cost a bit more, but less than printing the EBook yourself (for those who can wait for delivery or just don't like to read PDFs).

jwenting Jul 30th, 2005 6:24 pm
Re: What is the Use of Apache Ant and CVS in the Java Development...?
 
Just an example of the usefulness of CVS:

Today I visited a friend and did some work there. I checked the changes into CVS from over there, and when I got back home I loaded my regular development tool (JBuilder) and ran an update of my project which instantly gave me all those changes on my local harddisk.
No more remembering which files to copy from one directory to another, that's all taken care of.

Sauce Jul 30th, 2005 9:05 pm
Re: What is the Use of Apache Ant and CVS in the Java Development...?
 
CVS also has the ability of branching. In which 2 people can edit the same file at the same time. Then when you resubmit the file to the cvs server you are given the ability to merge your changes and the changes somebody else did together.

freesoft_2000 Jul 31st, 2005 11:04 am
Re: What is the Use of Apache Ant and CVS in the Java Development...?
 
Hi everyone,

If you are doing a chatting program i don't think(someone correct me if i am wrong) you need ant or cvs. You simply need to use sockets

Richard West

jwenting Jul 31st, 2005 3:06 pm
Re: What is the Use of Apache Ant and CVS in the Java Development...?
 
Richard, Ant and CVS aren't programming APIS. They're tools to make your job easier.
Just like you can use notepad to write your code but it's a lot faster and more convenient to use vim or jEdit.

freesoft_2000 Jul 31st, 2005 4:20 pm
Re: What is the Use of Apache Ant and CVS in the Java Development...?
 
Hi everyone,

I had a feeling was wrong, wasn't quite sure about this.
Sorry about it. Isn't CVS a protocol??

Richard West

jwenting Aug 1st, 2005 2:15 am
Re: What is the Use of Apache Ant and CVS in the Java Development...?
 
there may be a protocol called CVS (though I've never heard of it) but that's not the issue here.
We're talking about CVS the VCS (version control system), a similar (but free) product to visual sourcesafe or PVCS.

freesoft_2000 Aug 1st, 2005 9:02 am
Re: What is the Use of Apache Ant and CVS in the Java Development...?
 
Hi Everyone,

CVS is - Concurrent Versions System. Its something where people get together to do their work ususallly for Open-Source. When i said protocol i meant a way for developesr to get the latest codes using their client-server access system and not an internet protocol like HTTP.

I was referring to something that i had replied to like the below thread

http://www.daniweb.com/techtalkforums/thread28901.html

Richard West


All times are GMT -4. The time now is 6:16 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC