I have two properties files
File 1 : Template.properties
- k1=v1
- k2=v2
- k3=v3
- k4=v4
- k5=v5
File 2 : New.properties
- k1=v11
- k2=v22
- k3=v33
- k4=v44
- k5=v55
- k6=v66
- k7=v77
I want to overwrite values of Template.properties with the values of New.properties and I don't want k6 and k7 in Template. How can i achieve this using ANT macro?
Please help.
Use a
copy
task with afilterset
. The template file should have @ around the replaceable values:The use the filterset as follows