The Ant Migration Tool is a free resource provided by Salesforce to support its users and partners but isn't considered part of our services for purposes of. Run the command 'ant retrieve' from the command prompt to retrieve the changes from sandbox. Make sure you run the command from the folder location specified like below. After you run the command, a folder named 'deploy' is created. The Ant Migration Tool is a Java/Ant-based command-line utility for moving metadata between a local directory and a Salesforce org. The Ant Migration Tool is especially useful in the following scenarios.
Before you can use the Force.com Migration Tool, Java and Ant must be installed and configured correctly. If you already have Java and Ant on your computer, you don’t need to install them, so first verify the installation from a command prompt. Step 1 – Download and Install Java – Many of you have already installed the JDK in your system if not then you can download JDK from.
Step 2 – Download Apache Ant – Apache Ant is a Java library and command-line tool whose mission is to drive processes described in build files as targets and extension points dependent upon each other. You can Download Apache Ant From Step 3 – Set the path for ANT_HOME and JAVA_HOME:-After you have downloaded the Java and Apache Ant and JDK then place the Apache Ant into C drive for convenience.Now, let us set the path for both Java and Ant. Go to • Control Panel -> System and Security -> System -> Advance System Settings -> • a Popup will open Click Environment Variables – > • Click New under user variable and enter “ANT_HOME” for variable name and use ant location for variable value for example if you have pasted the ant into c drive then it will look like “C: ant” click OK. • Again Click New under user variable and enter “JAVA_HOME” for variable name, use jdk location for variable value for example – “C: Program Files Java jdk1.8.0_51” Step 4 – Set the PATH:- Now, we have added the path for Ant and Java. We need to add one more variable name PATH. Click New under user variable and enter “PATH” for variable name, use “%ANT_HOME% bin;%JAVA_HOME% bin;” for variable value.
Now, time to do some testing for the above steps that we have setup until now. Open command prompt and type java -version hit enter, again type javac -version and hit enter. Now, type ant -version and hit enter you see the message like in below image. Note: – If you receive Tools.jar not found error, go to “/Ant/manual/api/org/apache/tools/ant/util/JavaEnvUtils.html” and replace “java.home” with “java_home”. Step 5 – Download Force.com Migration Tool: – In this step you need to download the force.com migration tool and can be downloaded from ““. After download unzip the file using 7Zip winrar or any other tool. You will see find a.jar file a html file and a folder name sample.
Step 6 –Copy “ant-salesforce.jar” file from the file that you downloaded into step 5 (folder name “salesforce_ant_41.0”) and paste it to ant lib folder Download the required files from “” for the demo purpose. Step 7 – After you downloaded the file from the above link place the file into your suitable location and unzip the file. Now, open build.properties file into any text editor and provide the credentials for the source and target Org then save as using properties extension of the file.
One of the primary options for Salesforce deployments today is the, also known as the Ant Migration tool and simply the Salesforce migration tool. The confusion around the name is actually fitting given the confusion around the tool itself.