Need of build tool :
We know that while doing complex coding practices in the Java we sometimes do following time consuming and hectic tasks manually, such as –
- Compiling the Java code
- Packaging the binaries
- Deploying the binaries to the server
- Testing out the changes
- Moving or copying code from one location to another
If you really want to make your task more simpler by automating all these processes then we need to use the build tools.
The above chart indicate that –
- On average, a developer spends 3 hours out of 10 hours of day are utilized for doing the manual tasks such as packaging,moving and compiling.
- If developer uses automated build tools such as Apache Ant then it will only require half an hour to complete all those manual tasks.
About Apache Ant :
- Ant stands for Another Neat Tool
- Ant was created by James Duncan Davidson. He was original author of Tomcat
- Ant was used to build Tomcat originally.
- Ant was bundled as part of Tomcat distribution
- Ant was created to overcome the problems and complexity associated with the make tool
- Ant was independent project in Apache in 2000
- NAnt is a .NET build tool which is used to build .NET apps
Features of Apache Ant :
- Ant is most used and complete Java build and Deployment tool available.
- Ant can handle platform specific properties such as file separators.
- Ant uses XML for writing the scripts which is simple and easy to understand. [ Learn XML Here ]
- Ant can handle and automate complicated repetitive tasks.
- Ant has lot of predefined tasks and creation of the new task is easy.
- Ant can invoked easily using command line and IDE such as Eclipse.
In the next article we will be learning the necessary steps for setting up Ant environment.