Install/SetUp Apache ANT tool (for Salesforce) in MAC Operating System

 Install/SetUp Apache ANT tool (for Salesforce) in MAC Operating System:


Steps:


1.

Login to Salesforce


2.

In lightning > Set Up > Custom Code > Tools > Lightning Platform Tools and Toolkits > go to Install the Ant Migration Tool > Click Download the .zip file of the Winter '22 Ant Migration Tool to download the latest file


3.

Save the .zip file locally, and extract the contents to the directory of your choice


4.

Copy the ant-salesforce.jar and paste it into your ANT installation's lib directory which is located in the root folder of your ANT installation.


5.

Exceute the following in Terminal : vim .profile (press i to be on insert mode)


6.

Paste the below code:

export JAVA_HOME=$(/usr/libexec/java_home)

export ANT_HOME=/Users/[urusername]/Desktop/[suppose-yourname]/ANT

export PATH=$PATH:$ANT_HOME/bin


7.

Repeat the same for vim .bash_profile and escape using 'Esc' key.


8.

Enter :wq and press 'Enter' key.


9.

Go to the path using 'CD' command e.g. cd Desktop/[suppose-yourname]/ANT/bin and execute the ANT commands.



For more details: visit https://developer.salesforce.com/docs/atlas.en-us.daas.meta/daas/forcemigrationtool_install.htm




Resource(s) : https://developer.salesforce.com/docs/atlas.en-us.daas.meta/daas/forcemigrationtool_install.htm



Comments