Apache ant is used primarily for the construction of Java projects. Why use Apache ant to build a project:
1) Project construction is not a simple compilation, a variety of resources need to be properly constructed, for example, some classes need to be compressed into jar files, some files need to be placed in the specified location, sometimes need to use configuration files. These tasks are trivial, and manual processing is unavoidable.
2) IDE tools such as MyEclipse can easily deploy Web projects, but out of these integration tools, such as without such an integration tool on the machine where the project needs to be deployed or the operating system of the target machine does not support the tool? Apache Ant is a good tool.
Now take a simple Java project as an example to illustrate the project build process for Apache Antt (project name test, where the SRC folder contains source files Test.java "0 minutes to download test Resources "):
The first step: Apache Ant's installation configuration. How to install Apache ant See the blog "ant--how to build Apache ant environment in Windows operating system ". Also install the JDK, as for how to install, please search Baidu, the configuration is very simple.
ant--using ant to build a simple Java project