![]() ![]() It is essential to understand the basic principles of work and the XML format of the build script. ![]() Specify the project name and the default target We get the same result if we call ant with the hello parameter: What happens? Ant finds the script file with the default name (build.xml) and executes the target with the name hello also specified by default in the project tag using the default attribute (note that in the project tag we also specify the name of the project using the name attribute). We go to this directory by calling ant: $ mkdir hello Then save the file containing this script with the name build.xml. To do this in Linux, use the mkdir command. ![]() We create the hello subdirectory in the home directory. If we see a similar message – everything is OK. We check the operability by calling ant in the command line: $ ant -versionĪ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.*. Using Ant is the same for both Linux 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).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |