fileset

Description

The fileset type is used to reference a list of files. The list can be created by specifying individual filenames, or by listing patterns to include. Filesets can also be configured to exclude file names or file patterns.

Parameters

Table 20. Parameters

Attribute Type Description Required
dir string The base directory of the fileset. The default value is the build file's directory. false
defaultexcludes boolean If true, commonly excluded file names will be automatically be excluded. These are ".svn" and ".git" directories. The default value is true. false
failonerror boolean If true, the build will fail if the fileset is empty. The default value is false. false

Nested Elements

include

The items to include in the fileset. Can be a pattern or a file name.

Table 21. Parameters

Attribute Type Description Required
name string The pattern or file name to include in the fileset. true

exclude

The items to exclude from the fileset. Can be a pattern or a file name.

Table 22. Parameters

Attribute Type Description Required
name string The pattern or file name to exclude from the fileset. true

Examples

Example 11.  Includes only blitzmax files in the "src" directory.

<fileset dir="src"> <include name="**/*.bmx" /> </fileset>

Example 12.  Includes images except those with "ignore" in the name

<fileset> <include name="**/*.png" /> <include name="**/*.jpg" /> <include name="**/*.gif" /> <exclude name="*ignore*" /> </fileset>