Skip to main content

Posts

Showing posts from June, 2017

How to use "Apache Ant" a Force.com Migration Tool

Pre-requisite Java JDK Apache Ant, Version 1.6 or later ANT Installation Instructions Define these path variables ANT_HOME = C:\Users\kumamuk01\dev\apache-ant-1.10.1 JAVA_HOME= C:\Program Files\Java\jdk1.8.0_121 Test if ANT is installed properly Mac: export PATH=/Users/kumarijl/apache-ant-1.9.14/bin:$PATH Command Prompt > ant Buildfile: build.xml does not exist! Build failed Command Prompt > ant -version C:\Users\kumamuk01>ant -version Apache Ant(TM) version 1.10.1 compiled on February 2 2017 Install the Force.com Migration Tool Download Force.com Migration Tool You could follow the instructions given in README file within the package. Configure Ant Step - 1: Update build.properties file which contains environment information. Provide User Name and Password or Security Token which will be used by Ant to login to the Salesforce Org. Step - 2: Update build.xml file to contain the build targets. Build targets