DEV Community

Cover image for How to set up Ant tool for Salesforce deployment ?
Tanmay Shukla
Tanmay Shukla

Posted on • Edited on

How to set up Ant tool for Salesforce deployment ?

Here is the process to set up Ant tool for Salesforce deployment.
Steps:
1) Install JDK
https://www.oracle.com/java/technologies/downloads/#java16

Location where JDK to be installed:
C:\Program Files\Java

Setting up environment variable
Variable = JAVA_HOME
Value = C:\Program Files\Java\jdk-16.0.1\bin

2) Set up ant tool
http://ant.apache.org/bindownload.cgi

Variable = ANT_HOME
Value = C:\ANT_HOME\apache-ant-1.10.10

3) Need salesforce jar file and sample folder

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

Download the .zip file of the Spring '21 Ant Migration Tool

Sample folder + salesforce ant jar
Copy the sample folder to location
C:\ANT_HOME\apache-ant-1.10.10

Salesforce jar file
C:\ANT_HOME\apache-ant-1.10.10\lib

4) Create new Windows path variable

%ANT_HOME%\bin

Top comments (0)