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?
Properties can't be changed but antContrib vars (http://ant-contrib.sourceforge.net/tasks/tasks/variable_task.html ) can.
Here is a macro to do a find/replace all on a var:
Then call the macro like:
Filename will be ${newFileName}