This is a global target build to call out multiple short hand targets within the build.xml file.
![salesforce ant migration tool testlevel salesforce ant migration tool testlevel](https://salesforceprofs.com/wp-content/uploads/2019/10/2019-10-09_10h50_08-1024x261.png)
Shorthand targets included in the build file. deploy, retrieve and so on in a specific format. build.xml, the main file containing all the possible tasks to perform, here tasks that we might want Ant to perform for our project i.e. Use CL or Git Bash and Run ant from the deployment directory. The Salesforce Ant Migration Tool ant-salesforce.jar is an ANT extension that adds Salesforce-specific tasks to Ant. sf.deployRoot - The directory containing the metadata to be deployed to.sf.serverurl - Login url for your Salesforce org type.Session Id can be retrieved by using this command in the Devconsole : bug('The Session ID is ' + UserInfo.getSessionId()) To login as for deploying/retrieving metadata. sf.sessionId - Salesforce session Id for the user you wish.
#Salesforce ant migration tool testlevel password
sf.password - Password + security token for the user you wish.sf.username - Username for the org you will be deploying to /.List of configurable build properties from build.properties: build.xml - Ant build file with shorthand targets to use the.build.properties - Ant properties file for individualĬonfigurations (e.g.Inludes pckage.xml and components that are mentioned in the package.xml src - Sample struture for deploying files to Salesforce Org.Static package will ensure all the metadata components are included for a successful permissionset retrieve. In case of a package with only permissionsets the ‘retrieveunpackaged’target will just retrieve the as it is missing the supporting metadata while retrieving from the target org. static - A static file is created and uploaded to the folder which contains metadata that will be retrieved for each deployment.
![salesforce ant migration tool testlevel salesforce ant migration tool testlevel](https://salesforceprofs.com/wp-content/uploads/2019/10/image-6.png)
Includes an empty package.xml and a destructiveChanges.xml
![salesforce ant migration tool testlevel salesforce ant migration tool testlevel](https://teamforcesite.files.wordpress.com/2019/12/cropped-blog-header.png)