O'Reilly logo

Mastering Application Development with Force.com by Kevin J. Poorman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Targets, macros, and built-ins

Inside the project tag, we're defining a number of target nodes and one macro node. The target nodes define tasks that we can run with the Ant runtime. For instance, we can run ant checkoutFromGit to pull our code and metadata from a git repository. Similarly, this build.xml file defines: retrieve, cleanSourceDirectory, deploy, retrieveAndDeploy, and checkoutFromGitAndDeploy. Any of these can be specified on the Ant command line to fire off that task. Tasks can have dependencies, and if you look closely at the retrieveAndDeploy task, you'll see that it defines the dependencies on retrieve and deploy. Dependencies are run in the order they're defined in and provide you with an easy way to combine several tasks into ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required