You have successfully installed Apache Ant on your Centos 8 server. To verify if Apache Ant is installed properly use the ant -v command which will display the Apache Ant version: $ ant -versionĪpache Ant(TM) version 1.10.7 compiled on September 1 2019 $ sudo chmod +x /etc/profile.d/ant.shÄ 3- Load the environment variables for the current session by using the following command. $ vi /etc/profile.d/ant.shÄ 2- Make the script executable by using the chmod command. When no arguments are specified, Ant looks for a build.xml file in the current directory and, if found, uses that file as the build file and runs the target specified in the default attribute of the tag.To do that, create a new file named ant.sh inside of the /etc/profile.d/ directory. If you've installed Apache Ant as described in the Installing Ant section, running Ant from the command-line is simple: just type ant. ![]() ![]() Ant allows command line arguments, even arguments which contains space characters. If you get an error saying sudo: unzip: command not found, install the unzip package with: sudo dnf install unzip.Ä 1- We will now configure the PATH environment variable to include the Apache Antâs bin directory. Sometimes, projects task require arguments which will be passed to another process by using command line.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |