Converts source-formatted files into metadata that you can deploy using Metadata API.
It executes the project convert source command.
In addition to the attributes used by every ant-sf task, this task uses the following attributes:
Attribute | Command line equivalent | Description | Required |
---|---|---|---|
manifest | --manifest | The path for the manifest (package.xml) file that specifies the metadata types to convert. | No. |
outputdir | --output-dir | The output directory to store the Metadata API-formatted metadata files in. | No |
packagename | --package-name | The name of the package to associate with the metadata-formatted files. | No |
rootdir | --root-dir | A directory other than the default package directory that contains the source-formatted files to convert. | No |
sourcedir | --source-dir | Paths to the local source files to convert. | No |
Specifies the name of a metadata component to convert.
The sourcedir attribute is a path-like structure and can also be set via a nested <sourcedir>
element.
<project-convert-source rootdir="path/to/source" />
<project-convert-source rootdir="path/to/source" outputdir="path/to/outputdir" packagename="My Package" />
<project-convert-source rootdir="path/to/source"> <metadata>Component1</metadata> <metadata>Component2</metadata> </project-convert-source>
<project-convert-source sourcedir="force-app/main/default/objects/Case"> <sourcedir> <pathelement location="force-app/main/default/objects/Contact" /> <dirset dir="force-app/main/default/objects"> <include name="Ac*" /> </dirset> </sourcedir> </project-convert-source>
Version: 0.0.0-master