I need some help with replacing dynamic values. I am new to ant scripting and require some assistance.
I currently have one file on a server which will hold the properties that are specific for that server. i.e database connection details
ydkprefs.dbClassName=com.ibm.db2.jcc.DB2Driver
ydkprefs.dbType=DB2
ydkprefs.dbURL=jdbc:db2://localhost:50000/application
ydkprefs.dbschema=SCHEMA
ydkprefs.dbUsername=db2inst1
and then I have a template xml file with dynamic properties i.e.
<Database Name=${dbName} className="${dbClassName}"
dbType="${dbType}" folder=""
jdbcURL="${dbURL}"
schema="${dbschema}" user="${dbUsername}"/>
I have looked through a number of sites and I am none the wiser. The most promising information. The only thing that I have found that can work is to replace individual values which are stated within the ant script itself.