Sets a property to the base name of a specified file, optionally minus a
suffix.
This task can accept the following attributes:
file
property
suffix
The file and property attributes are required. The
suffix attribute can be specified either with or without
the ".", and the result will be the same (ie., the
returned file name will be minus the .suffix).
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.
Called by the project to let the task do its work. This method may be
called more than once, if the task is invoked more than once.
For example,
if target1 and target2 both depend on target3, then running
"ant target1 target2" will run all tasks in target3 twice.