When this task executes, it will set the specified property to the value of the last element in the specified file. If file is a directory, the basename will be the last directory element. If file is a full-path filename, the basename will be the simple file name. If a suffix is specified, and the specified file ends in that suffix, the basename will be the simple file name without the suffix.
Attribute | Description | Type | Required? |
file | file or directory to get base name from | File | ? |
property | Property to set base name to. | String | ? |
suffix | Optional suffix to remove from base name. | String | ? |