The <addResource> element denotes a resource that is associated with the component that is to be captured as part of the containing snapshot. This element can 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, <addResource> is equivalent to the following statement:
<addFile path="path-of-deployed-directory" filter="FILES" displayName="resourceSourcePath"/> |
If the associated resource is a directory resource with deployMode=REPLACE, <addResource> is equivalent to the following statement:
<addFile path="path-of-deployed-directory" displayName="resourceSourcePath"/> |
Otherwise, the associated resource is a file-based resource, and <addResource> is equivalent to the following statement:
<addFile path="path-of-deployed-file" displayName="resourceSourcePath"/> |