This mapper supports an arbitrary number of nested mappers and returns the results of the first mapper that matches. This is different from composite mapper which collects the results of all matching children.
<mapper type="firstmatch"> <mapper type="glob" from="*.txt" to="*.bak"/> <mapper type="glob" from="*.php" to="*.php"/> </mapper>
Applying the mapper, you will get the following results from the following filenames: