In this article, I will try to provide steps to quickly setup the deployment process. For a detailed description of every file and various options please go through the link above. This article is only for a quick setup process and doesn't intend to cover details.

Note: These locations are based on the directories in which i installed JAVA and APACHE ANT. Your location might be different if you installed in a different directory. The Path variable should point to the BIN directory.

STEP 7:

Verify that the installations were successful by going to the command prompt and executing the following commands.

STEP 9:

Unzip the file to a directory of your choice. I unzipped it to my desktop.

STEP 10:

Replace the ant-salesforce.jar file from location in STEP 8 to the location in STEP 9 as shown below.

STEP 11:

Now, modify the build.properties file in the 'deploy_sf_ant' folder. This file contains the username/password for the sandbox and production organizations. Open build.properties with WordPad and enter the details.

STEP 12:

Place the package.xml in the 'RetrievePackage' folder. The package.xml file contains the list of components you want to deploy.

STEP 13:

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.

STEP 14:

Run the command 'ant deploy' from the command prompt to deploy yo changes to production.

STEP 15:

Use the instructions.txt file for subsequent deployments.

1. Place package.xml in the folder 'Retrieve Package' 2. from CMD run 'ant retrieve' 3. Folder 'deploy' is created. 4. To validate change edit build.xml and make 'checkonly = true'. 5. To deploy make checkonly = 'false' and from CMD run 'ant deploy' 6. Rename the 'deploy' folder and copy to 'completed' folder for history tracking. 7. Delete the 'deploy' folder