官术网_书友最值得收藏!

Ant

The ant build tool was built especially for Java projects around the year 2000. The aim of Java to be a write-once-run-anywhere language needed a tool that can also be used in different environments. Although make is available on Unix machines, and Windows as well, Makefiles were not always compatible. There was a small problem with the use of the tab character that some editors replaced with space, rendering Makefile unusable, but this was not the major reason. The main problem with make that ignited the development of Ant is that the commands are shell commands. Even if the implementation of the make program was made to be compatible on different operating systems, the used commands were many times incompatible, and that was something make itself could not change. Because make issues external commands to build the targets, developers are free to use any external tool that is available for them on the development machine. Another machine using the same operating system just may not have the same set of tools invoked by make. This undermines the portability of the make built projects.

At the same time, Ant is following the major principles of make. There are targets that may depend on each other and there are commands that need to be executed in an appropriate sequence to create the targets one after the other, following the dependency order. The description of the dependencies and the commands is XML (tab issue solved) and the commands are implemented in Java (system dependency is solved, well... more or less).

As Ant is neither part of the operating system nor the JDK, you will have to download and install it separately if you want to use it.

主站蜘蛛池模板: 罗江县| 米泉市| 得荣县| 贡嘎县| 积石山| 锡林浩特市| 武功县| 时尚| 大宁县| 荣成市| 开远市| 康保县| 阳高县| 松原市| 浮梁县| 余干县| 邹平县| 丰县| 南通市| 舟山市| 丽水市| 穆棱市| 榆社县| 岐山县| 慈利县| 明光市| 张掖市| 大庆市| 和静县| 宾阳县| 铁岭市| 台江县| 漳平市| 正定县| 北川| 简阳市| 怀仁县| 乌拉特前旗| 夹江县| 饶阳县| 横峰县|