The <addResource> element is a child of the <capture> element and denotes a resource associated with the component that is to be captured as part of the containing snapshot. This element may only be included in simple components.
This element serves as a syntactic shorthand for an equivalent <addFile> element, as follows:
If the associated resource is a directory resource with deployMode ADD_TO, then <addResource> is equivalent to: <addFile path="path of deployed directory" filter="FILES" displayName=" resourceSourcePath"/>
If the associated resource is a directory resource with deployMode REPLACE, then <addResource> is equivalent to: <addFile path="path of deployed directory" displayName="resourceSourcePath"/>
Otherwise, the associated resource is a file-based resource and <addResource> is equivalent to: <addFile path="path of deployed file" displayName=" resourceSourcePath"/>