Re: Long String concatenation failed

2018-09-26 Thread Paul King
his? >>> >>> On Tue, Sep 25, 2018 at 4:04 PM, mg wrote: >>> >>>> You can have new lines, just move the "<<" oi the end of the previous >>>> line, so Groovy knows there is more coming (Groovy does not need >>>> end-of-li

Re: Long String concatenation failed

2018-09-25 Thread Jmeter Tea
gt;> Can I open a bug in groovy for this? >> >> On Tue, Sep 25, 2018 at 4:04 PM, mg wrote: >> >>> You can have new lines, just move the "<<" oi the end of the previous >>> line, so Groovy knows there is more coming (Groovy does not need >&g

Re: Long String concatenation failed

2018-09-25 Thread Paul King
the previous >> line, so Groovy knows there is more coming (Groovy does not need >> end-of-line semicolons btw): >> >> String text ="" <" << >> >> vars["id2"] << "" >> >> >> Ursprüngliche Nac

Re: Long String concatenation failed

2018-09-25 Thread mg
case it should not take long to refactor your code... Ursprüngliche Nachricht Von: Jmeter Tea Datum: 25.09.18 15:47 (GMT+01:00) An: users@groovy.apache.org Betreff: Re: Long String concatenation failed mg: Yes, I saw that it's working, but still, groovy should add sugar to java ins

Re: Long String concatenation failed

2018-09-25 Thread Jmeter Tea
ys it best…. >> >> http://mrhaki.blogspot.com/2009/10/groovy-goodness-creating-xml-with.html >> >> >> >> >> >> Erick Nelson >> >> Senior Developer – IT >> >> HD Supply Facilities Maintenance >> >> (858) 740-

Re: Long String concatenation failed

2018-09-25 Thread mg
achricht Von: Jmeter Tea Datum: 25.09.18 14:54 (GMT+01:00) An: users@groovy.apache.org Betreff: Re: Long String concatenation failed Thank for your answers, I still have some comments:mg: I don't want to have a huge line with 20 parameters that can't be seen on screen so I n

Re: Long String concatenation failed

2018-09-25 Thread Nelson, Erick
2018 at 5:19 AM To: "users@groovy.apache.org" Subject: Re: Long String concatenation failed If it is just the CTE that is the problem, you just have ro move the "<<" to the end of the previous line... Ursprüngliche Nachricht Von: Jmeter Tea Datum:

Re: Long String concatenation failed

2018-09-25 Thread mg
If it is just the CTE that is the problem, you just have ro move the "<<" to the end of the previous line...  Ursprüngliche Nachricht Von: Jmeter Tea Datum: 25.09.18 09:56 (GMT+01:00) An: users@groovy.apache.org Betreff: Long String concatenation failed Hello,I have to 

Re: Long String concatenation failed

2018-09-25 Thread Jmeter Tea
Hi Nelson, You mean to use append method as in StringBuilder: new StringBuilder().append( foo ) .append( bar ) .append( www ) .toString() On Tue, Sep 25, 2018 at 2:19 PM, Nelson, Erick wrote: > Looks like a job for

Re: Long String concatenation failed

2018-09-25 Thread Nelson, Erick
Looks like a job for MarkupBuilder or StreamingMarkupBuilder Sent from my iPhone On Sep 25, 2018, at 3:56 AM, Jmeter Tea mailto:jmeter...@gmail.com>> wrote: Hello, I have to concatenate a lot of variables in a script and I want to make it readable, but I failed to separate lines as in

Re: Long String concatenation failed

2018-09-25 Thread Jmeter Tea
Thanks for both answers, but it's not what I need exactly Regarding Susanne Jaeckel: I want concatenate with *specific*(not all) values and with different order and prefix for each, e.g. "My Name is" << vars["first"] >> " " << vars["last"] << "and ..." Regarding Batuhan Bayrakçı : I'm using

Re: Long String concatenation failed

2018-09-25 Thread Susanne Jaeckel
Hi! If I have a hashmap and have to concatenate them the way you show, I would try: def vars = ["id": "value", "id2": "value2", "id3": "value3"] String text = "" vars.each { k, v ->     text += "<${k}>${v}" } println text Regards, Susanne. Am 25.09.2018 um 09:56 schrieb Jmeter Tea:

Re: Long String concatenation failed

2018-09-25 Thread Batuhan Bayrakçı
Hello, You can use GString that let you put variables into double quotes more easy. example: String text = "${vars["id"]}" 2018-09-25 10:56 GMT+03:00 Jmeter Tea : > Hello, > > I have to > concatenate a lot of variables in a script and I want to make it readable, > but I failed to separate