Excluding folders and files from bundle export

When you export a bundle to z/OS® UNIX file system for deployment, you can exclude specific folders and files from export by using an export.properties file in the root of your bundle project. This file identifies what are excluded from the bundle export processing.

About this task

In the export.properties file, you must specify the files and folders to be excluded from export under an export.excludes key, as shown in Figure 1.

An exclusion can contain a folder name or the root folder of the project. A folder must end with / so as to be distinct from a file name. You must use ./ for the root folder.

The only supported wild card is the asterisk (*). You can use this wild card to replace either the file name or the file extension.

Restriction: Using an asterisk (*) as a wildcard in a folder name is not supported.

Note that dot files, which are files without a name but only a file type extension, are automatically excluded from export. Therefore, you do not need to specify dot files explicitly for exclusion. The export.properties file is also automatically excluded from export.

Matching is case sensitive.

Example

Figure 1 shows examples of valid exclusions.

Figure 1. Example of an export.properties file
# A list of folders or files excluded from "Export Bundle Project" processing

export.excludes = \
                  ./internal.txt,\             1 
                  source/temp/example.*,\      2 
                  *.log,\                      3 
                  log/                         4 

 1  The internal.txt file in the root of the project is excluded.

 2  Any file that has a file name of example of any file type in the source/temp folder is excluded.

 3  Any log file in the project is excluded.

 4  The log folder is excluded.