Deploying Components

The Ant Migration Tool is retired with Spring ’24. The tool continues to function as-is for future API versions but isn’t updated with new functionality and isn’t supported.  If Salesforce adds a new feature that is incompatible with Ant, the Ant Migration Tool won't be updated to support it. To manage metadata changes, switch to Salesforce CLI for a modern, supported developer experience.

Note

You can deploy any set of components as a package or into your organization directly in the unpackaged package. The package used is not determined by the build.xml target, but by the project manifest (package.xml). A sample deployment target follows:

1<target name="deployUnpackaged">
2  <sf:deploy 
3      username="${sf.username}" 
4      password="${sf.password}" 
5      sessionId="${sf.sessionId}"
6      serverurl="${sf.serverurl}" 
7      deployroot="projectFolder"/>
8</target>