<FileGroup> element
Defines a rule by which files are added to a chunk, which is a collection of files that should be installed as a group.
Syntax
<FileGroup
SourcePath = string
DestinationPath = string
Include = string />
Attributes
SourcePath
Required. The source of files against which the rule is run. The path is relative to the content directory that's passed in with the /d
parameter to the makepkg tool.
DestinationPath
Required. The target destination where files that are matched by the rule are placed in the file system of the generated image. This attribute should specify only the directory name. It shouldn't include the file name.
Include
Required. The rule for matching files under this source location. You can use a path that's relative to the source location, the standard "*" and "?" wildcards, and/or environment variables.
Remarks
This element isn't recursive. Every directory to be included must be specified by its own FileGroup
element.
Information on elements
Relationship | Element name |
---|---|
Parent element | Chunk |
Child element | None |
Example
<FileGroup DestinationPath="\Data\Maps" SourcePath="Y:\Maps\Level1" Include="*.map"/>
<FileGroup DestinationPath="\Data\Maps" SourcePath="Y:\Maps\Level2" Include="*.map"/>
<FileGroup DestinationPath="\Data\Maps" SourcePath="Y:\Maps\Level3" Include="*.map"/>