


A project may contain any number of targets. The XML element project has three attributes which are as follows − Sr.No

The processing instruction target matching "" is not allowed.Īll build files require the project element and at least one target element. If you allow them, the following error message occurs while executing the ant build − Note that there should be no blank line(s) or whitespace(s) before the xml declaration. You are free to use other file names or save the build file in some other location.įor this exercise, create a file called build.xml anywhere in your computer with the following contents − However, there is no restriction on the file name or its location. Typically, Ant's build file, called build.xml should reside in the base directory of the project.
