Is there any way of replacing properties in a file while it's being copied? I have a file that contains
docBase="${project.projectDir}/src/web"
And I want to copy it and replace the properties automatically. With ant, I
would have used a filterchain (expandproperties) but with gradle I'm a
little lost:
ant.copy(
file: "fromfile.xml",
tofile: "tofile.xml"
//chain: << magic happens here
)
Note that I'm not using any wildcards here, so a pure Groovy solution may
also solve my problem.
