-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
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
Copy task expand() transforms "\n" into newlines #10458
Comments
Workaround: escaped "\\n" string instead of "\n" |
Same behaviour with "\t" |
If you don't want this behavior for some files, you can exclude them and copy them separately or escape the files (like you found). |
SimpleTemplateEngine has an option to escape backslashes: Turning on this option fixes my issue: online script |
Opened feature request: #10492 |
While this was closed as "won't fix", the linked issue (#10492) ended up being fixed in 7.2 |
Consider the input some configuration file that contains the following text in some json:
"SELECT\n count(id) AS idc\nFROM dev.product"
Apply the following copy task with expand:
The text is transformed into an invalid json:
Gradle 5.5.1
Build time: 2019-07-10 20:38:12 UTC
Revision: 3245f74
Kotlin: 1.3.31
Groovy: 2.5.4
Ant: Apache Ant(TM) version 1.9.14 compiled on March 12 2019
JVM: 12.0.2 (Oracle Corporation 12.0.2+10)
OS: Windows 10 10.0 amd64
The text was updated successfully, but these errors were encountered: