Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 89A4A200B35 for ; Tue, 5 Jul 2016 10:03:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 88361160A60; Tue, 5 Jul 2016 08:03:12 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D0105160A4F for ; Tue, 5 Jul 2016 10:03:11 +0200 (CEST) Received: (qmail 7996 invoked by uid 500); 5 Jul 2016 08:03:11 -0000 Mailing-List: contact dev-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.apache.org Delivered-To: mailing list dev@groovy.apache.org Received: (qmail 7985 invoked by uid 99); 5 Jul 2016 08:03:10 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2016 08:03:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 3929F180662 for ; Tue, 5 Jul 2016 08:03:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.821 X-Spam-Level: X-Spam-Status: No, score=-0.821 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=googlemail.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id R5n7b3kzsuMo for ; Tue, 5 Jul 2016 08:03:07 +0000 (UTC) Received: from mail-lf0-f54.google.com (mail-lf0-f54.google.com [209.85.215.54]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 5B0B25F4E5 for ; Tue, 5 Jul 2016 08:03:07 +0000 (UTC) Received: by mail-lf0-f54.google.com with SMTP id h129so129532858lfh.1 for ; Tue, 05 Jul 2016 01:03:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=nP7Y8uXjMfsdFvFFP2wwxDFLgpdEYRnCT60JXGBrxGA=; b=vMQ55UBfDUcw4nz4qh0+4g90gfTd+iHiziHo0aNddzQrkwETjZ05mFyxnDvv/mlVAh xKdaWcfr+kkErnkkZXzu2tGAZ8SxMleKrt2tAXjOcKZ56QxTjNJU1BJj0bKtc/9/i9x3 xDI+9YVB1Yy4GWbvDYrTDjKcBAhQQ6ENvP9QWSBxq2Jt6xXwv2EwxtIaG3iX50gLv0h5 SVADn0Ef9jFBEhhNEDgQOpyORmcRVwcrDNrAPqXosNduwgAP/K0MnX5i7utPbywyQ3O5 qUfVbEMws//rqu5Oh8pyGZo4bfo90VlEIG2PVZIPsoBLSjLjs0RI7Yrfv9skskhfo3sP jCeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=nP7Y8uXjMfsdFvFFP2wwxDFLgpdEYRnCT60JXGBrxGA=; b=ZTVL8t5LGCRUUqhGHf98oQtLlyce8smB1KIc4+C27Kh9aA12uIBq+SPIT4jZx2TPqR rxhWgdz1NPlROibObc2PJV/MRUBgHjTvED2dw+Sm9Y2fZPqJTQiZf3T0ptsz5D5nscGg p1IVAIcZFVxUuYfIS+nLBAfcYBIV1vDezjxuQvNyHtL0mtGV9MSDNSkTm9keAQ9JEfGH 5QksWtd+QX4Xk1/X5eCyNd5v0Lqha8ZAvBqyl7ToHEP7pX9Fw6hyHj7YfvWSNSRCBIrd PRVZpGczuyG1V8V7Q7ahs/3B3h1AHCd4WTZ6FpNC3sWJbhY3W8+xT9QhhcfN5MLISMYQ ElZA== X-Gm-Message-State: ALyK8tIdf3jW0sDFjX15r/L6HLaetHiVRvbF0YjfnT9BvQfG85LeLbMEoRb0T92+e75rdsvpAiu8pjfvgWqQ1Q== X-Received: by 10.25.136.11 with SMTP id k11mr3288980lfd.134.1467705786617; Tue, 05 Jul 2016 01:03:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.210.7 with HTTP; Tue, 5 Jul 2016 01:03:05 -0700 (PDT) In-Reply-To: References: <57777AB0.5030506@gmx.org> From: Thibault Kruse Date: Tue, 5 Jul 2016 10:03:05 +0200 Message-ID: Subject: Re: Groovy syntax question To: dev@groovy.apache.org Content-Type: text/plain; charset=UTF-8 archived-at: Tue, 05 Jul 2016 08:03:12 -0000 I have no advice beyond what can be found via google. On Sun, Jul 3, 2016 at 8:56 AM, Roman Shaposhnik wrote: > Thibault, Jochen, > > thank you guys -- you got me going (turns out my confusion was partially > because newly defined tasks are also visible as a property). > > One final question -- do you have any recommendation on how to > debug (well, trace actually) Groovy scripts inside of Gradle build.gradle? > > Seems like my go-to IDE InteliJ is broken in that regard. Any suggestions > on what may work? > > Thanks, > Roman. > > On Sat, Jul 2, 2016 at 1:26 AM, Jochen Theodorou wrote: >> On 02.07.2016 09:06, Roman Shaposhnik wrote: >> [...] >>> >>> I'd really appreciate if somebody can explain what the first >>> exec resolves to and why: >>> >>> $ cat build.gradle >>> exec { >>> commandLine "echo", "foo" >>> } >> >> >> this is a method call to exec. >> >>> println exec >> >> >> this is asking for the property exec. Method calls without arguments must be >> done as exec() in Groovy. Furthermore properties and methods are mostly >> separate. So it is very possible the exec method exists and the property >> does not. >> >> bye Jochen >>