- Java 9 Programming By Example
- Peter Verhas
- 285字
- 2021-07-02 23:37:30
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.
- 基于粒計算模型的圖像處理
- Spring Boot開發與測試實戰
- JavaScript:Functional Programming for JavaScript Developers
- 軟件測試項目實戰之性能測試篇
- 程序員修煉之道:通向務實的最高境界(第2版)
- 軟件測試技術指南
- Integrating Facebook iOS SDK with Your Application
- 大數據分析與應用實戰:統計機器學習之數據導向編程
- C和C++游戲趣味編程
- Getting Started with Eclipse Juno
- 動手學數據結構與算法
- CRYENGINE Game Development Blueprints
- Java程序設計與項目案例教程
- 深入實踐DDD:以DSL驅動復雜軟件開發
- 百萬在線:大型游戲服務端開發