The java build tool ant provides filter to replace variables by their values
Example: A file with properties:
db.user.name=user db.driver=com.informi
sed -e 's/@db.driver@/com.informix.jdbc.IfxDriver/g' -e 's/@db.user.name@/user/g' > outfile.xml