ANT full form is Another Needed Tool. Ant is a build tool that is java based. A build tool performs the following tasks:
Compiling java code into byte code
Placing this byte code in a package
Deployment to production systems
Document creation and release notes preparation.
Is it helpful?
Add CommentView Comments
Ques 2. Explain ANT functionality.
Ant is an open source project available under the Apache license. Therefore, its source code can be downloaded and modified.
Additionally, Ant uses XML build files which make its development easy.
Cross Platform.
Use of XML along with Java makes Ant makes it the perfect solution for developing programs designed to run or be built across a range of different operating systems.
Extensible.
New tasks are used to extend the capabilities of the build process, while build listeners are used to help hook into the build process to add extra error tracking functionality.
As Ant is extensible and open, it can be integrated with any editor or development environment easily.
Is it helpful?
Add CommentView Comments
Ques 3. Explain using ANT and give an small example.
Before start using ANT, we should be clear about the project name and the .java files and most importantly, the path where the .class files are to be placed.
For example, we want the application HelloWorld to be used with ant. The Java source files are in a subdirectory called Dirhelloworld, and the .class files are to put into a sub directory called Helloworldclassfiles.
1. The build file by name build.xml is to be written. The script is as follows