

The creation of an archive in the format Zip Replacement of fragments of text in files Examples of these commands are shown below. The standard version contains more than 150 types of tasks. In addition to that extend the functionality of the product web site of the project are additional libraries, eg, for integration with third-party systems. The package includes a set of libraries, affecting a wide range of tasks. And if we want to run, the compile is executed first.

For example, there is a target with the name compile, and there is - with the name run, dependent on the compile. The target has the ability to specify a dependency using the depends attribute. The specified name becomes a command for our script and you can call the corresponding target like this: You can set a name for the target using the name attribute (name = name_of_target). The simplest scenario should have at least one goal. Further, it contains definition of goals ( target), dependencies ( depends) and properties ( property). The text is opened (and closed) by the project tag, in which you can specify the name of the project and the default goal. A specific set of objectives and their relationship depend on the specifics of the project.Īnt lets you define your own types of assignments by creating a Java-classes that implement certain interfaces.

Typical examples of goals are clean (the removal of intermediate files), compile (compile all classes), deploy (deployment of applications on the server). Each task is indivisible, atomic command that performs an elementary action.īetween the goals can be defined depending on - each target is performed only after you have completed all the goals on which it depends (if they have already been performed previously, the redo is not performed). Objectives are comparable to the procedures in programming languages and include calls to teams tasks (Tasks). First of all, this file contains the definition of the project, consisting of individual targets (Targets). Failure to use the operating system commands and scripts in XML format provides portability.Ĭontrol the build process occurs through XML-script, also known as Build-file. Unlike make, Ant tool is completely independent of the platform, but requires a system installed on the used Java operating environment - JRE.
