I have 2 properties files as below a.properties has list of property names b.proprties has list of its corresponding values
a.properties
Application=
ApplicationID=
BU=
b.properties
ACCSRV
ACCSRV
BT
I am looking for ant script which can give me final properties file with out out as below:
Final.properties:
Application=ACCSRV
ApplicationID=ACCSRV
BU=BT
Sounds like you need an external tool for this. If you can depend on unix tools, you can use the
pastecommand (seeman paste) and run it from ant using theexectask. If not, you can eitherjavacandjavato compile and run it from antscripttask to embed the tool in your ant script using some scripting language