Posted in Salesforce

Salesforce ANT migration tool

1. Download Apache ANT
Link: http://ant.apache.org/bindownload.cgi
2. Download Force.com Migration Tool
Link: https://developer.salesforce.com/docs/atlas.en-us.daas.meta/daas/forcemigrationtool_install.htm
Link: https://developer.salesforce.com/page/Force.com_Migration_Tool#Force.com_Migration_Tool_Download
3. Setup Classpath in Environment Variables.
4. Unzip the Force.com Migration Tool and add “ant-salesforce” Jar file to ANT lib folder.
5. From the jre lib folder copy paste “tool” Jar file to ANT lib folder.
6. Configure “build.xml” and “build.properties”.

build.properties 
ANT 1

build.xml
ANT 2
7. In cmd navigate to the folder which contains the package.xml and other resource that needs to be deployed and enter command “ant deployMENT*” (* target name from build.xml)

Advertisements