

Your output should look something like this:Īpache Ant version 1.7.0 compiled on December 13 2006

To do this type ant -version at the command prompt. Add a semicolon and the path to the ant bin directory.
#Check apache ant windows
On Windows you do this by opening the Control Panel from the Start Menu, switching it to classic view if necessary, then editing the PATH environment variable found in System/Advanced/Environment Variables/System Variables/Path. You should see an output as given below C:\>ant -version Apache Ant (TM) version 1.10.12 compiled on OctoIf you do not see the above output, then please verify that you have followed the installation steps properly. You can do this by adding the following line to your. To verify the successful installation of Apache Ant on your computer, type ant on your command prompt. In the Targets tab of the Edit Configuration dialog box, check. Create a new variable, call it ANT_HOME and set it to be the ant directory.Īdd $ANT_HOME/bin to the system path to be able to run ant from the command line. In the Package Explorer, right-click the build.xml file. On Windows you do this by opening the Control Panel from the Start Menu, switching it to classic view if necessary, then opening System/Advanced/Environment Variables. bashrc file (substituting with the actual location of the ant directory on your system):Įxport ANT_HOME=/home/user/apache-ant-1.7.0 You can do this by adding the following line to your. This gives a list of all active connections to Apache. We pass its output to grep where search for 80 since Apache runs on port 80. Netstat command lists all active connections. Unzip the downloaded file to the directory of your choice.Ĭreate an environment variable called ANT_HOME pointing to the Ant installation directory. You can use any of the following netstat commands to check number of concurrent connections to Apache.
