We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug In the latest version 3.0.0-RC5, replacing tokens with the value 1, results in them being replaced with true instead.
1
true
Steps To Reproduce build.xml
build.xml
<?xml version="1.0" encoding="UTF-8"?> <project name="Test" default="test"> <target name="test"> <copy file="test.reference.json" tofile="test.json" overwrite="true"> <filterchain> <replacetokens begintoken="%" endtoken="%"> <token key="TEST_TOKEN" value="1"/> </replacetokens> </filterchain> </copy> </target> </project>
test.reference.json
{ "test": "%TEST_TOKEN%" }
Command executed:
/usr/bin/php7.4 ./phing-3.0.0-RC5.phar -f build.xml
Result:
cat test.json { "test": "true" }
Expected behavior Using a <token> with value="1" should be treated verbatim.
<token>
value="1"
Additional context This is working fine with Phing 2 or when the value is greater than 1.
The text was updated successfully, but these errors were encountered:
e6702dc
No branches or pull requests
Describe the bug
In the latest version 3.0.0-RC5, replacing tokens with the value
1
, results in them being replaced withtrue
instead.Steps To Reproduce
build.xml
test.reference.json
Command executed:
Result:
Expected behavior
Using a
<token>
withvalue="1"
should be treated verbatim.Additional context
This is working fine with Phing 2 or when the value is greater than
1
.The text was updated successfully, but these errors were encountered: