Closed GSMR369 closed 3 months ago
Hi @GSMR369,
You are missing the breaking change between v3 and v4 (tokenPattern
input). Based on your v3 configuration here is the corresponding v6:
- task: replacetokens@6
inputs:
root: "$(System.DefaultWorkingDirectory)/config/"
sources: "configuration.properties.template => configuration.properties"
encoding: auto
addBOM: true
missingVarAction: none
missingVarLog: warn
tokenPattern: doublebraces
telemetryOptout: false
If you want to simplify as you are using default values you can use:
- task: replacetokens@6
inputs:
root: "$(System.DefaultWorkingDirectory)/config/"
sources: "configuration.properties.template => configuration.properties"
addBOM: true
tokenPattern: doublebraces
Thanks 👍
Below conversion from task@3 to task@6 is not working. 0 token out of 0. Can you pls explain the problem here.
task: qetza.replacetokens.replacetokens-task.replacetokens@3 inputs: rootDirectory:"$(System.DefaultWorkingDirectory)/config/" targetFiles: "configuration.properties.template => configuration.properties encoding: "auto" writeBOM: true actionOnMissing: "warn keepToken: false tokenPrefix:{{ tokenSuffix:}} useLegacyPattern: false enableTelemetry: true
task: qetza.replacetokens.replacetokens-task.replacetokens@6 inputs: root: "$(System.DefaultWorkingDirectory)/config/" sources: "configuration.properties.template => configuration.properties" encoding: "auto" addBOM: true missingVarLog: "warn" keep: false tokenPrefix:{{ tokenSuffix:}}
useLegacyPattern: false
enableTelemetry: true