The <installSpec> element is a child of the <resourceRef> element. This element specifies the way in which the associated resource is to be installed. This element is inherited by derived components and cannot be overridden. However, the base component can use component variables to specify values for <installSpec> attributes. The values of these variables can also be overridden.
The <installSpec> element has the following attributes. These attributes can reference component-scoped substitution variables.
name – A required string that is the name to use for the resource when it is installed.
path – An optional string that is the path in which to install the resource. Relative directories are considered relative to the installPath attribute of the containing component. If this argument is omitted, the component's installPath attribute is used by default.
permissions – An optional string that indicates the permissions to assign to the resource when installed.
The string is in the format of an octal triplet, as defined by the UNIX chmod command. See the chmod(1M) man page. If this attribute is omitted, the resource is installed with default permissions.
user – An optional string that is the owner of this resource when it is installed. If this attribute is omitted, the user is determined by the plan executor.
group – An optional string that is the group to assign to this resource when it is installed. If this attribute is omitted, the group is determined by the plan executor.
deployMode – An optional attribute that specifies the way in which the associated directory resource is deployed. This attribute is ignored if the resource is not a directory.
ADD_TO – The directory contents are added to any existing files in the target directory.
REPLACE – The directory contents replace all existing files in the target directory.
If this argument is omitted, the default value, REPLACE, is used.
diffDeploy – An optional value of type boolean, which specifies whether the resource should be deployed in differential deploy mode. If this attribute is omitted, differential deploy mode is disabled. If differential deploy mode is enabled, only resources that have not previously been deployed are deployed.