QuickStart with Apache Ant on Mac El Capitan 10.11 OS X
The Mac Tutorial Shows You Step-by-Step How-to Install and Getting-Started with the Latest Apache Ant for Mac OS X 10.11 El Capitan.
Ant is a build tool, a small program designed to help software teams develop big programs by automating all the drudge-work tasks of compiling code, running tests, and packaging the results for redistribution.
Apache Ant is written in Java and is designed to be cross-platform, easy to use, extensible, and scalable.
Included in the Tutorial a Link to Getting Installed the Recommended Oracle Java JDK 7 for Mac El Capitan 10.11.

-
Download Latest Apache Ant Binaries:
-
Double-Click on Ant Archive to Extract
-
Open a Command Line Terminal Window
(Press “Enter” to Execute Commands) -
Relocate Apache Ant:
sudo su
mv /Users/dave/Downloads/apache-ant* /opt/
exit
-
Setting Up the User PATH:
nano $HOME/.profile
Append:
export PATH=$PATH:/opt/apache-ant-[X.Y.Z]/bin
export ANT_HOME=/opt/apache-ant-[X.Y.Z]
export JAVA_HOME=[/path/2/jdk7]The JAVA_HOME Should Point to the Oracle Java JDK Installation.
How-to Install Recommended Oracle JDK 7+ on Mac OS X:
Then Load the New SetUp:
source $HOME/.profile
-
Testing Ant Installation:
ant -version
-
Apache Ant Building Java Quick-Start: