Where do I download the Ant Migration Tool?

Where do I download the Ant Migration Tool?

In above screen you can see that before copying tools.jar I was getting warning. Login to salesforce and navigate to “Your Name |Setup | Develop | Tools” and download “Force.com Migration tool”. Unzip the downloaded file to the directory of your choice. Copy the “ant-salesforce.jar” file from the unzipped file into the ant lib directory.

What do I need to start deployment using Ant?

To start with deployment using ANT, we will need “build.xml” and “build.properties” file. As there is no need of “build.properties” however its good to have it so that the configuration related settings are in different file. You can copy both files from “sample” folder of unzipped content from salesforce.

Where do I put set command in ant?

Problem in above solution is that, you would need to execute set command every time before using ANT. For permanent solution, open ant.bat file in bin folder of ANT installation (Same installation folder referred in ANT_HOME). And, at very first line, write below command and save it.

How to retrieve and deploy custom metadata types using Ant?

Just to make sure not to repeat same mistake and save time in future, lets discuss how we can import / export or rather I will say retrieve and deploy Custom Metadata Types in Salesforce using ANT Migration toolkit. For the sake of simplicity consider below Custom Metadata Type schema.

What is the Ant Migration Tool in Salesforce?

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.

When to delete a component in Ant Migration?

By default, deletions are processed before component additions. In API version 33.0 and later, you can specify components to be deleted before and after component additions. The process is the same as with performing a delete-only deployment except that the name of the deletion manifest file is different.