PDA

View Full Version : What is Ant?


javaguru
04-02-2010, 07:57 PM
What is Ant in Java? How it is useful for projects? Please explain.

rosy
04-02-2010, 08:04 PM
Ant is a Java based build tool to compile your java source code files, build your deployment JAR and WAR files, unit-test code and create projects javadoc documentation.

Ant 1.6.0 adds a lot of new features, most prominently support for XML namespaces as well as a new concept of Ant libraries that makes use of namespaces to avoid name clashes of custom tasks.

Advantages of Ant


Build IN Java, USING Java, and FOR Java
Supports Java Tools (javac, javadoc, etc.)
XML Build File is Easier to Build, Read, and Maintain than MAKE file
Easier to Extend
Supports Cross Platform Java Development
Ant is much faster than using MAKE ? Each command is a new process
Ant runs within the JVM
Each command is executed from within JVM
Tools like javac are new threads – not new process
Compiling large number of java source files is MUCH,MUCH faster with Ant
Ant's Debug Options are very helpful
XML much easier to read than MAKEFILE
User does not need to know all command line interface options to tools that can be called programmatically
Even OS-Specific commands can be setup in 'TaskDefs' and/or included from other source

RajuRastogi
05-02-2010, 05:32 PM
Bachpan me padha tha, ANT maane cheenti hota hai.

ANT ka itna hifi definition bhi hota hai, saala kabhi padh hi nahi paye. Sab kaminey Rancho ki wajah se hua. Kaash mech ki jagah CS branch lee hoti.

RancchoddasChanchad
12-02-2010, 03:18 PM
Bachpan me padha tha, ANT maane cheenti hota hai.

ANT ka itna hifi definition bhi hota hai, saala kabhi padh hi nahi paye. Sab kaminey Rancho ki wajah se hua. Kaash mech ki jagah CS branch lee hoti.

Raju bhai duniya ne kafi tarrakki kar li hai.. ab aapka hamara zamana nahi raha..

abhishek
12-02-2010, 05:17 PM
Rancho and Raju bhai this is not correct.. You all are going off the topic.. :offtopic:

sunita
18-03-2010, 07:25 AM
Rancho and Raju bhai this is not correct.. You all are going off the topic.. :offtopic:

Yeah we should not start funny discussions in serious thread like this.. You can use jokes and humor section for all these comments..