NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
# B.29 PathConvert Converts a path form for a particular platform, optionally storing the resultinto a given property. It can also be used when you need to convert FileList, FileSet, DirSet into a list, separated by a given character, such as a comma or space, or, conversely, e.g. to convert a list of files in a FileList into a path. Nested `map` elements can be specified to map Windows drive letters to Unix paths, and vice-versa. Table B.28:聽Attributes NameTypeDescriptionDefaultRequired`targetos``String`The target architecture. This is a shorthand mechanism for specifying both pathsep and dirsep according to the specified target architecture.N/ANo`dirsep``String` The character(s) to use as the directory separator in the generated paths.`PhingFile::$separator`No`pathsep``String`The character(s) to use as the path-element separator in the generated paths.`PhingFile::$pathSeparator`No`property``String`The name of the property in which to place the converted path.result will be logged if unsetNo`refid``String`What to convert, given as a reference to a path, fileset or dirset defined elsewhereif omitted, a nested path element must be supplied.No`setonempty``Boolean`Should the property be set, even if the result is the empty string?trueNo