Is it possible to replace text in properties in Ant's build.xml?
问题 I have a property, app.version, which is set to 1.2.0 (and, of course, always changing) and need to create zip file with name "something-ver-1_2_0". Is this possible? 回答1: You can use the pathconvert task to replace "." with "_" and assign to a new property: <?xml version="1.0" encoding="UTF-8"?> <project> <property name="app.version" value="1.2.0"/> <pathconvert property="app.version.underscore" dirsep="" pathsep="" description="Replace '.' with '_' and assign value to new property"> <path