Token Replacements
One common thing in builds is replacing a token placeholder across all files, or perhaps certain files defined by a file globbing pattern. We've got a special command for that.

From the CLI

1
tokenReplace path=/tests/*.cfc token="@@[email protected]@" replacement=`package version`
Copied!

From CFML

1
command( 'tokenReplace' )
2
.params(
3
path = "/tests/*.cfc",
4
token = "@@[email protected]@",
5
replacement = command( 'package version' ).run()
6
)
7
.run();
Copied!
Copy link
Edit on GitHub