NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
# F.2 ChainedMapper This mapper implementation can contain multiple nested mappers. File mapping is performed by passing the source filename to the first nested mapper, its results to the second, and so on. The target filenames generated by the last nested mapper comprise the ultimate results of the mapping operation. The to and from attributes are ignored. F.2.1 Examples ``` <mapper type="chained"> <mapper type="flatten"/> <mapper type="glob" from="*.php" to="new/path/*.php"/> <mapper> <mapper type="glob" from="*.php" to="*.php1"/> <mapper type="glob" from="*.php" to="*.php2"/> </mapper> </mapper> ``` Applying the mapper, you will get the following results from the following filenames: Table F.2:聽Result of mapping FromTo`foo/bar/a.php``new/path/a.php1` and `new/path/a.php2``foo/bar/b.php``new/path/b.php1` and `new/path/b.php2`