It's all about the answers!

Ask a question

Can BuildForge do token replacement?


Jirong Hu (1.5k9290258) | asked Jul 30 '17, 10:39 a.m.

 We are using BuildForge for both build and deployment. Before deploy to different environments, I need to replace some values in the config file. Does BF has something like token replacement in UrbanCode Deploy?

Accepted answer


permanent link
Joshua Keefe (56) | answered Aug 03 '17, 11:59 a.m.

Believe this would be the dot command .strsub you would be looking for to modify the config files.

.strsub
https://www.ibm.com/support/knowledgecenter/SSB2MV_8.0.0/com.ibm.rational.buildforge.doc/topics/dotcmd_strsub.html

.strsub <source> <replacement> file [file ...]

Use the .strsub command to perform basic string replacement in one or more text files. The system scans the target files for the <source> string; where a match is found, the system replaces the <source> string with the <replacement>. The .strsub command replaces every instance of the string (source) on each and every line in each file.

Jirong Hu selected this answer as the correct answer

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.