Return-Path: X-Original-To: apmail-groovy-users-archive@minotaur.apache.org Delivered-To: apmail-groovy-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E8A8D1841F for ; Thu, 9 Jul 2015 17:16:37 +0000 (UTC) Received: (qmail 96795 invoked by uid 500); 9 Jul 2015 17:16:37 -0000 Delivered-To: apmail-groovy-users-archive@groovy.apache.org Received: (qmail 96767 invoked by uid 500); 9 Jul 2015 17:16:37 -0000 Mailing-List: contact users-help@groovy.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@groovy.incubator.apache.org Delivered-To: mailing list users@groovy.incubator.apache.org Received: (qmail 96757 invoked by uid 99); 9 Jul 2015 17:16:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jul 2015 17:16:37 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lhartzman@gmail.com designates 209.85.192.169 as permitted sender) Received: from [209.85.192.169] (HELO mail-pd0-f169.google.com) (209.85.192.169) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jul 2015 17:14:22 +0000 Received: by pdbep18 with SMTP id ep18so168370652pdb.1 for ; Thu, 09 Jul 2015 10:15:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=Vebf2MvQoGc5mB1Oth47oyWeKv/jzEQEOxwDIDMayhQ=; b=j00pU1L7HbBdC1nrBownV4S479daOAw/wJjx12UoBH1jJ5e0x7RiyaLbQT0L1it+WF HUxgKtA9ILxan3YEEyiWT2bgXqbbWFTxYhGK8oDZX2d53KhI/N5RZ8YGJKC6QXNFrc7A ZPyICSaHmh56yNr3E6TEOsSkvuMSI84PvUKdNrVETQ8K7YrI02pASw2n+0SKpA8yHDI1 8sO9fqOOvfBTHRv3x9fkwNv2tiBaB+OHUwsZ2+eWfEKoj/AtXdQXM8ky5TVdPgz21Zxq ygyFggCeE0TFg6kk13Kh7NfHedWRZqIN50AZh9DsUc3cTtb55hEbLP8BGn84jarmfgYU ES5Q== X-Received: by 10.68.57.144 with SMTP id i16mr33635690pbq.130.1436462123703; Thu, 09 Jul 2015 10:15:23 -0700 (PDT) Received: from rl1397us.rlcorp.local ([216.52.209.1]) by smtp.gmail.com with ESMTPSA id i4sm6585852pdk.74.2015.07.09.10.15.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 Jul 2015 10:15:23 -0700 (PDT) From: Les Hartzman Content-Type: multipart/alternative; boundary="Apple-Mail=_49D6E1A7-4E74-47FF-934A-A231E6772696" Message-Id: <2F8D961B-A780-4663-BD4E-FD613CEA3BCC@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) Subject: Re: New to Groovy - question on code in documentation Date: Thu, 9 Jul 2015 10:15:22 -0700 References: To: "users@groovy.incubator.apache.org" In-Reply-To: X-Mailer: Apple Mail (2.2102) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_49D6E1A7-4E74-47FF-934A-A231E6772696 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 The error code is in the GDK documentation under =E2=80=9CWorking with = I/O=E2=80=9D in section 1.5 =E2=80=9CExecuting External Processes=E2=80=9D= . > On Jul 9, 2015, at 10:11 AM, Owen Rubel wrote: >=20 > can you point me to where this code exists in documentation? >=20 > Owen Rubel > 415-971-0976 > orubel@gmail.com > On Thu, Jul 9, 2015 at 9:53 AM, Les Hartzman > wrote: > Hi, >=20 > As the subject says, I=E2=80=99ve just gotten started with learning = Groovy and have been going through the documentation. >=20 > There is some code in the section on files that is not explained. If = someone could clarify that, it would be great: >=20 > doInTmpDir { b -> > File file =3D null > def tmpDir =3D b.tmp { > file =3D 'foo.tmp'('foo') > } > What does =E2=80=98foo.tmp=E2=80=99(=E2=80=98foo=E2=80=99) do? > I tried to put this into groovysh but it complained: No signature of = method: groovysh_evaluate.foo.tmp() is applicable for argument types: = (java.lang.String) values: [foo] >=20 > Thanks in advance. > Les >=20 >=20 >=20 --Apple-Mail=_49D6E1A7-4E74-47FF-934A-A231E6772696 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 The error code is in the GDK documentation under =E2=80=9CWorki= ng with I/O=E2=80=9D in section 1.5 =E2=80=9CExecuting External = Processes=E2=80=9D.

On Jul 9, 2015, at 10:11 AM, = Owen Rubel <orubel@gmail.com> wrote:

can you point me to where this code exists in = documentation?

Owen Rubel
415-971-0976
orubel@gmail.com

On Thu, Jul 9, 2015 at 9:53 = AM, Les Hartzman <lhartzman@gmail.com> wrote:
Hi,

As the subject says, I=E2=80=99ve just = gotten started with learning Groovy and have been going through the = documentation.

There is some code in the section on files that is not = explained. If someone could clarify that, it would be great:

 doInTmpDir { b ->
                File =
file =3D null
                def =
tmpDir =3D b.tmp {
                    file =3D 'foo.tmp'('foo')
            }
What does =E2=80=98foo.tmp=E2=80=99(=E2=80=98foo=E2=80=99) =
do?
I tried to put this into groovysh but it =
complained:  No signature of method: groovysh_evaluate.foo.tmp() is =
applicable for argument types: (java.lang.String) values: =
[foo]

Thanks in =
advance.
Les




= --Apple-Mail=_49D6E1A7-4E74-47FF-934A-A231E6772696--