- In the Project window, select the directory, where the build file should be created.
- Right-click the directory and choose on the context menu, or press Alt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertCtrl+N or Alt+InsertAlt+InsertAlt+InsertControl N or Control EnterControl N or Control EnterMeta N or Control Enter.
- In the New File dialog, specify the name of the new file with .xml extension, for example, build.xml. The new file opens in the editor.
- Specify the build targets.
You can use the path-like structures in the
fileset
or
dirset
directives to define
Note
You have to enter at least a root tag in the build.xml file. Otherwise the file will not be added to the Ant Build tool window.
- Add the build file to the project.

