I have a parameters.xml file for an IIS hosted web application (Which works with javascript, HTML and CSS files). In order to create a Continues Deployment sequence, I read about creating a publish profile, tokenize it with tokens and on build and release via TFS (On-Prem), tokenize and publish my web application. The problem is that I have a javascript configuration file in the client site application. I want to be able to edit it with tokens in the pipeline Iv'e already created.
My parameters xml is as follows:
<parameters>
<parameter name="DebugOption"
description="Some debug option."
defaultValue="false">
<parameterEntry
kind="TextFile"
scope="config.js"
match="debugOption = true" />
</parameter>
</parameters>
As you can see, I'm matching the string "debugOption = true". What I would like to achieve is to only change the true to false, but in the tokenizer task in TFS, if I set the $(DebugOption) to be false, it replaces all of the string to false - to be specific it will replace "debugOption = true" to "false", which isn't the final result I want.
Is it any way to match this kind of string (I can't match only for true because it will replace all the 'true' occurences in the javascrip file), and only change the value, without giving the value "debugOption = false" - Only false?