3

Is there a way to ignore package.xml while deploying changes via ANT in Salesforce.? We only want the ANT engine to consider the folder structure mentioned within the root directory of the deploy folder and ignore the components specified in package.xml Any help would be highly appreciated

1
  • 1
    Is there any particular reason why you would want to do that? I assume you're trying to ignore some of the components, e.g. classes or pages, which you were trying to achieve by deleting unnecessary folders. What you could do is edit the package.xml in such way that you remove all <types> nodes with component types that you're trying to ignore. E.g. removing entire ApexClass <types> node from the package.xml should result in classes ("classes" folder) not being deployed.
    – dino ursic
    Jan 3, 2014 at 12:42

1 Answer 1

3

Sorry it is not possible to exclude the package.xml file, you will receive an error stating the package.xml is missing. However it is possible to use wildcards in the definition of it. This will make it easier as components in the folders are added and removed without having to keep updating the package.xml, which is i assume what your trying to achieve. This section in the Metadata API lists which component types support wildcards.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .