From users-return-3754-archive-asf-public=cust-asf.ponee.io@groovy.apache.org Tue Sep 25 09:56:16 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id C64E518061A for ; Tue, 25 Sep 2018 09:56:15 +0200 (CEST) Received: (qmail 72808 invoked by uid 500); 25 Sep 2018 07:56:14 -0000 Mailing-List: contact users-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@groovy.apache.org Delivered-To: mailing list users@groovy.apache.org Received: (qmail 72798 invoked by uid 99); 25 Sep 2018 07:56:14 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Sep 2018 07:56:14 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 53FC8C97CC for ; Tue, 25 Sep 2018 07:56:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.899 X-Spam-Level: * X-Spam-Status: No, score=1.899 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id uFsnN-33wCuL for ; Tue, 25 Sep 2018 07:56:13 +0000 (UTC) Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com [209.85.219.171]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 63E9C5F3CE for ; Tue, 25 Sep 2018 07:56:13 +0000 (UTC) Received: by mail-yb1-f171.google.com with SMTP id p74-v6so8803073ybc.9 for ; Tue, 25 Sep 2018 00:56:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=HSSz1TMPBIygD2bJ8xMXdk352c+VUJ9A0iXBGf0bflk=; b=d2T1oz8WH/7Is6EYl91b+Dibv9/F2unWFU4zv6/u+J9dKZkxDnMdcL9rjlnyuzgbEw vx/rz+qj3ZjESoKhhwJdSa1rfFonn1kPEgvxUfbiu3WJWtkAuRWz5o9wsM4Z8q1r8nwR nGvImGL0KsWNFKymSsqR0SI7ek7Pkwd9/Eff2g75H31ducW/WHlF3t8jKtfkU64P3szW T4WJxhQM7HMcg/TtZSwBezS0EoF0spqh+N1gjXRgLm4atJU73iDN/bCyPRWEEwaNQsa/ cLvSD6BvNRWTLXPz6JQRxh+AYmed6EkFsHlOe4+CctegS7Ya+joDOL3CzDZRgz5RZI8Z KNyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=HSSz1TMPBIygD2bJ8xMXdk352c+VUJ9A0iXBGf0bflk=; b=NvLtZDedaL6VgopaPxzPF1iOtQF/klNoffvJ+F+YM41LexjTYUtMBG3bXrrW0pWudL SPHJNDleR+0xEgdBPA3QpqjBkC2hfD7xxjGTRWdHZCp8MltaPIRnmcP7gnBgczqNZfMT 84QuEkTbr06JqWfJhRDnwx+vfINPVn+1rd0rkapMDWrHmNeCG+nSVeOk+Is2f7QWY8jA gzVOcr97fOaCCJUtrdtQqgGfgLQIWGMraaX9xtfQu/Q1Vb4i3Cekmrbh/0TVr8xhU9By Iiho8k/oAizh3JJV/oDz85Bg/+j+Se9o9BnsrQOWj6t73irnNn2OggiXvLwrA7Opquo3 XtcA== X-Gm-Message-State: ABuFfoikKYKUOV4dTgFnVvERzTUxrh80S3zW2VJaxSzth+z71/8eJr10 k0ReF/DNcTx6Y/6ZGQ86BIZyPmhC6TmxysR+738FqnoY X-Google-Smtp-Source: ACcGV60AXimYNkVJE0S/hxf5DJAaNhpo25dWjm7t3Iqb7A4sqMBw/bpkLPCwQWiwDpPJr0XAu86yn7Z3EdD1sWXs+2I= X-Received: by 2002:a25:8806:: with SMTP id c6-v6mr1183617ybl.12.1537862172661; Tue, 25 Sep 2018 00:56:12 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:afcf:0:0:0:0:0 with HTTP; Tue, 25 Sep 2018 00:56:12 -0700 (PDT) From: Jmeter Tea Date: Tue, 25 Sep 2018 10:56:12 +0300 Message-ID: Subject: Long String concatenation failed To: users@groovy.apache.org Content-Type: multipart/alternative; boundary="00000000000083db140576ad70ad" --00000000000083db140576ad70ad Content-Type: text/plain; charset="UTF-8" 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 java, The following code doesn't compile due to: Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script1.groovy: 2: unexpected token: << @ line 2, column 1. << vars["id2"] << "" Code: String text ="" <" << vars["id2"] << ""; Is there a workaround or a better way concatenation a string in groovy? Related question: https://stackoverflow.com/questions/47786399/jmeter-groovy-script-concatenation-of-variables Thank you --00000000000083db140576ad70ad Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
<=
span style=3D"white-space:normal;background-color:rgb(255,255,255)">Hello,<=
/span>
I have to=C2=A0

concatenate a lot of v=
ariables=C2=A0in a script and I want to make it readable, but I faile=
d to separate lines as in java,=C2=A0The follow=
ing code doesn't compile due to:
Caused by: org.codehaus.groovy.control.MultipleComp= ilationErrorsException: startup failed:
Script1.groovy: 2: unexpe= cted token: << @ line 2, column 1.
=C2=A0 =C2=A0<< va= rs["id2"] << "<id2>"
Code: String
text =3D"<id>" <&l= t;vars["id1" << "= ;<id><id2>"=20 << vars["= id2"] << <= /span>"<id2>"<= /span>;

Is there a workaround or a better way=C2=A0concatenation a = string in groovy?

Related question:

Thank you
--00000000000083db140576ad70ad--