
This functionality relies on the Ant plugin, which is bundled and enabled in IntelliJ IDEA by default. IntelliJ IDEA integrates with Ant to provide a comprehensive build process that includes compilation, packaging with the documentation and source code, committing to version control, and so on.

Thanks to OrangeDog and other users for providing additional information.Ant is a flexible and platform-independent build tool from the Apache Ant Project. 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į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. Put the "bin" subdirectory in your path.If it is not already installed, then your best bet is to install Homebrew ( brew install ant) or MacPorts ( sudo port install apache-ant), and use those tools to install Apache Ant.Īlternatively, though I would highly advise using Homebrew or MacPorts instead, you can install Apache Ant manually.

Ant is already installed on some older versions of Mac OS X, so you should run ant -version to test if it is installed before attempting to install it.
