in groovy, what if I want a multiline string without interpolation and WITHOUT OFF
sort of:
var1="hello hello" var2="""/ adakldjkadj\^mk as@da \kl#DFD#$# ${var1} d3&657\7fdsfsf /""" println var2;
should print in the same way as he does, for example:
adakldjkadj \ ^ tk
a @ yes \ cl # DFD # $ #
$ {Var1}
d3 & 657 \ 7fdsfsf
THIS, $ {var1} was NOT extended, and escaping \ was not necessary, and this is a multi-line string
THEN HOW TO APPOINT THIS HEREDOC IN GROOVY SERIES. This is possible in a bash script, ruby, perl, etc.
expressed in ruby as (pay attention to the quotation marks around separating characters, such as: "EOL")
a = <<'EOL' adakldjkadj\^mk as@da \kl#DFD#$# yes ${var1} d3&657\7fdsfsf EOL
How to do it in groovy?
source share