Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Can BuildForge do token replacement?

 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?

0 votes


Accepted answer

Permanent link

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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,026

Question asked: Jul 30 '17, 10:39 a.m.

Question was seen: 1,736 times

Last updated: Aug 03 '17, 11:59 a.m.

Confirmation Cancel Confirm