Adds example files matching file mask pattern
Source position: fpmkunit.pp line 921
public procedure TSources.AddExampleFiles( |
const AFileMask: string; |
const ASearchPathPrefix: string; |
Recursive: Boolean = False; |
AInstallSourcePath: string = '' |
); |
AFileMask |
|
File mask pattern for matching example files |
ASearchPathPrefix |
|
Path prefix for example file search operations |
Recursive |
|
Whether to search subdirectories recursively |
AInstallSourcePath |
|
Installation path for example source files |
AddExampleFiles adds example files to the source collection that match the specified file mask pattern. The method scans for files matching AFileMask and adds them to be included with the package as example code.
Example files are typically demonstration code showing how to use the package functionality. They are installed to the specified installation path for reference by package users.