install ant on mac

The easiest way to install ant is through brew. The steps are as follows:
1. Install brew (if it is already installed, you can skip this step).
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"
2. Update the brew database to the latest.
Brew update
3. Install ant
brew install ant
(you can check the installed version through ant –version after installation)

PS: If there is an error in the previous installation of brew, you can uninstall brew and then reinstall it through the following statement.
rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326310063&siteId=291194637