Salesforce ANT Setup for MAC

Ant setup for MAC

  1. Download Apache ANT Latest  version from  https://ant.apache.org/bindownload.cgi (download zip file.
  2.  Extract the zip file in Desktop. Make sure you have Java 8 or Later installed in the System.
  3. Now open the terminal and type vim .profile.
  4. Press "i" key, So that you will be in Insert mode.
  5. Open Terminal and Type.
    1.  export ANT_HOME=/Users/mukul/Desktop/apache-ant-1.19.6. (Make sure you change the ANT_HOME according to your machine.)
    2. export JAVA_HOME=$(/usr/libexec/java_home).
    3. export PATH=$PATH:$ANT_HOME/bin
    4. export PATH=$PATH:$JAVA_HOME/bin.
  6. Press Esc Key.
  7. Enter :wq and press "Enter" key.
  8. Do the same for vim .bash_profile and for vim .zshenv as well.
  9. Close and reopen terminal and type - ant -version . It should display the version of the file.
  10. Download the ANT.
  11. Download ant-salesforce .zip file from location https://developer.salesforce.com/docs/atlas.en-us.daas.meta/daas/forcemigrationtool_install.htm
  12. Extract the zip file and copy ant-salesforce.jar file from it and paste it in the lib folder in extracted ANT Folder which was extracted in #2.

Comments

Popular posts from this blog

Salesforce CI/CD Pipeline | Bitbucket

Salesforce FLS Exporter