

It’s pretty popular in the Java Community along with Maven.

Thanks to OrangeDog and other users for providing additional information.Apache Ant is Java library and command line tool used to “build” or run tasks. If you are getting errors installing Brew, try uninstalling first using the command: rm -rf /usr/local/Cellar /usr/local/.git & brew cleanup Source: Error executing command 'ant' on Mac OS X 10.9 Mavericks when building for Android with PhoneGap/Cordova You should get the following output:Īpache Ant(TM) version X.X.X compiled on MONTH DAY YEAR To test the installation, just type "ant -version" into a terminal window. Once installed you can simply type: brew install antĪnt is now installed and available through the "ant" command in the terminal. If you already have brew installed, make sure it's up to date by executing: brew update Just follow the process which involves installing various components. It's a medium sized download which took me 10min to download and install. Simply execute the following command in a terminal window to install brew: ruby -e "$(curl -fsSL )" # Add the new version of Ant to future terminal sessionsĮcho 'export PATH=/usr/local/apache-ant/bin:"$PATH"' > ~/.profileĠ T23:03:43+00:00 T23:03:43+00:00 Answer Linkįor MacOS Maveriks (10.9 and perhaps later versions too), Apache Ant does not come bundled with the operating system and so must be installed manually. # Add the new version of Ant to current terminal sessionĮxport PATH=/usr/local/apache-ant/bin:"$PATH"
Sudo cp -rf apache-ant-1.8.1-bin /usr/local/apache-ant # Copy it into /usr/local Sudo mkdir -p /usr/local # Ensure that /usr/local exists Tar -xvzf apache-ant-1.8. # Extract the folder The commands that you would need, assuming apache-ant-1.8. (replace 1.8.1 with the actual version) were still in your Downloads directory, would be the following (explanatory comments included): cd ~/Downloads # Let's get into your downloads folder.
