
We create the hello subdirectory in the home directory (to do this, Linux has the mkdir command) and save the file containing the above script with a name build.xml.

If we see a similar message – everything is OK. We check the operability by calling ant in the command line:Īpache Ant(TM) version 1.10.1 compiled on February 2 2017 We have version 1.7.1 in the CentOS 6.8 repository, so it's better to use this script, which is offered in the previous article. Important: we need a version no lower than 1.8.*.
WHERE WE USE APACHE ANT INSTALL
Using Ant is the same for both fLinux and Windows.Īnt can easily be installed from the repository using a command like sudo apt-get install ant (replace apt-get on yum if necessary). Build scripts and Java examples have been tested in Linux (Simply Linux 7.95.0, CentOS Linux 6.8) and Windows (XP/7). We need the Java SE Development Kit (JDK, you can download it from ), your favorite text editor (in Linux we can use vi/vim/gedit, for Windows I recommend Notepad++) and basic skills in the command line.
WHERE WE USE APACHE ANT FULL


Despite its being Java-oriented, web developers also use this tool. Ant uses a build script, which is a simple XML file. Apache Ant should be familiar to every Java programmer: this is a popular software build tool, completely written in Java.
