Skip overwrite of the destination file if the produced contents are the same

This avoids recompilation of the maven projects that use hydromatic-resource.
In particular, see [CALCITE-484].
Update history