
PrevChapter 3.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. 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 can do this by adding the following line to your. 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. 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 ,java,ant,junit,Java,Ant,Junit,JUnit4eclipseRunasJUnitTest ant : Test class should have public zero-argument constructor at .MethodValidator. It can be used to control complex build tasks in Java and other.

Create an environment variable called ANTHOME pointing to the Ant installation. Ant is a powerful, Java based build tool developed by the Apache Foundations Jakarta Project.

Unzip the downloaded file to the directory of your choice.Ĭreate an environment variable called ANT_HOME pointing to the Ant installation directory. Install Ant Unzip the downloaded file to the directory of your choice.
