Now when you look at your folder structure it will look like this and all your apex classes and apex triggers will be present inside.Ī new folder named retrieveOutput has been created. Your terminal will look something like this Open your terminal and go to the location where you have extracted your downloaded file and type the following command I have configured it to extract all apex classes and apex triggers from your org. A qucik check whether everything is ready to go:ĭownload these files from this link and enter your org credentials in build.properties.
#Installing ant for salesforce zip file
It downloads a zip file which contains a Sample folder, ant-salesforce.jar and Readme.htmlĪnt-salesforce.jar is used to integrate ant tool with salesforce and the sample folder contains some example files to practise. Login to your org go to Setup –> Develop –> Tools and click on Migration Tool If you get the follwing kind of output then ant is installed in your machine.Īpache Ant™ version 1.9.3 compiled on April 8 2014
#Installing ant for salesforce install
This will install JDK and JRE in your machine.Ĭheck wheather Ant is installed or not in your machine using the following command in your terminal. Otherwise install using the following commands OpenJDK Server VM (build 24.75-b04, mixed mode) If you get the follwing kind of output then java is installed in your machine. When migrating from stage to production is done by IT - Anyone that prefers deploying in a scripting environment will find the Migration Tool a familiar process.Ĭheck whether java is installed or not in your machine using the following command in your terminal.If you need to repeat this process, it’s as simple as calling the same deployment target again. Repetitive deployment using the same parameters - You can retrieve all the metadata in your organization, make changes, and deploy a subset of components.Scripted retrieval and deployment of components can make this process much more efficient. Multistage release processes - A typical development process requires iterative building, testing, and staging before releasing to a production environment.
When you need to populate an environment with large amounts of setup changes.Ant Tool is useful in the following scenarios:
Ant is a command-line utility tool used for moving metadata between a local directory and a Salesforce organization and vice versa.