Basically, when a project is build, a lot of configurations are required like creating a folder structure, copying jar into respective folder and many more. These configurations can be done by ANT Build XML in one shot by using build.xml.
Description
Now, start building a skeleton build file for the project. Endtoendskeleton.xml is the build file(so called build.xml) for this project. This file should be always in parallel to the src file.
In the project tag of the above build file, the current directory is specified as the base directory, name of project and default task defines the last task performed and sends the mail. All other tasks are executed without depending on each other.
The first task called is the init task in which required properties will be defined for the entire build. The timestamp will be defined in init for capturing the date of execution.
Then the property file called build.properties is loaded using property task defines all build properties.
Next, recorder starts as soon as you log in. Then, the prepare target creates new directories.
After creation, the build process starts by fetching the source code from CVS.Then building war file depends on testing the project. If the test is passed, the war file can be deployed to remote server.
After deploying, zip the files and attach them to the mails and send. This process depends on deploy and stop recorder, which stops the logging process.
One can clean the directories using clean targets.
Summary
Key Points
build.xml file configures all the activities done by ANT.