Each build file is the standard XML files created to handle the compilation and deployment of the project. Each buildfile contains one project and at least one (default) target. Targets contains task elements. Each task element of the buildfile can have an id attribute and can later be referred to by the value supplied to this. We will see all the elements one by one.


<Projects>


A project element is the root element for the build file. A project has three attributes:


























Attribute



Description



Required



name



the name of the project.



No



default



the default target to use when no target is supplied.



No



basedir



the base directory from which all path calculations are done.



No



Example:-


<project name="Ant Tutorial" basedir="." default="setup">

                    

Copyright © 2012 VisualBuilder. All rights reserved