Return-Path: Delivered-To: apmail-buildr-users-archive@www.apache.org Received: (qmail 89247 invoked from network); 5 Jul 2010 23:45:59 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Jul 2010 23:45:59 -0000 Received: (qmail 94402 invoked by uid 500); 5 Jul 2010 23:45:58 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 94301 invoked by uid 500); 5 Jul 2010 23:45:58 -0000 Mailing-List: contact users-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@buildr.apache.org Delivered-To: mailing list users@buildr.apache.org Received: (qmail 94293 invoked by uid 99); 5 Jul 2010 23:45:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jul 2010 23:45:58 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of peter.j.donald@gmail.com designates 209.85.212.44 as permitted sender) Received: from [209.85.212.44] (HELO mail-vw0-f44.google.com) (209.85.212.44) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jul 2010 23:45:52 +0000 Received: by vws14 with SMTP id 14so6204444vws.17 for ; Mon, 05 Jul 2010 16:44:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; bh=KD88c09nX2oRIn7Xle4hj71k0JpOMFxGp4cUchsaHzY=; b=cGGyVUSFL02QyZ2KufTtI6DDncrbAdZpyQe00uj6PepLcSX+D1Hxj4otPOxd5IM3ZD RNkN14hv2Ft18bc9cPjJvAPP28w3fJo7f6OnP3YcI1i5vPgOrFETp3Y4ClMbGsxYtrPk U3xhKKFEjtL41ho15rjS9kQXmfkL2NCpfcF1Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=Hp6eG/5kl1eVL9oDmysaTqmL0bvnf+LRnKaZ2Oq0m4kFC+dFLtXr++p7F7OI0aKjVB uFEFO0CAA3wlfLDD4kUDfaW320XAHTP10uBWCz5j9SQrnxTRqb2HMaFOtRQjn35QbSgQ nYJg//UYK2AYBDGDCEOou24NznIk85LUplv1Y= MIME-Version: 1.0 Received: by 10.220.49.204 with SMTP id w12mr1931528vcf.243.1278373471102; Mon, 05 Jul 2010 16:44:31 -0700 (PDT) Sender: peter.j.donald@gmail.com Received: by 10.220.45.132 with HTTP; Mon, 5 Jul 2010 16:44:31 -0700 (PDT) In-Reply-To: References: Date: Tue, 6 Jul 2010 09:44:31 +1000 X-Google-Sender-Auth: c5hJ-P5bbqSKgoVwh-qwXPxbRQo Message-ID: Subject: Re: Removing toplevel prefix from the generated IntelliJ IDEA .iml files From: Peter Donald To: users@buildr.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi, You may want to check out buildr-iidea [1] which is an enhanced suite of task to generate IDEA project files. It can be configured to do what you want and much more besides that. If you try it out and find anything missing then drop me a line. [1] http://github.com/realityforge/buildr-iidea On Mon, Jul 5, 2010 at 7:52 PM, Karl Trygve Kalleberg wrote: > Hi gang, > > I've been browsing the online docs, the API docs and also looked at > the IDEA buildr source code a bit, but if the answer was right there > in my face, I didn't see it... > > I have a toplevel Buildfile in project foo, and a few subjects, say > bar and baz. Inside baz/, I do buildr idea, and the file foo-bar.iml > is generated. However, I want this file to be named bar.iml, i.e. > without the toplevel prefix "foo-". > > In /var/lib/gems/1.8/gems/buildr-1.4.0/lib/buildr/ide/idea.rb, I found th= e line > > =A0task_name =3D project.path_to("#{project.name.gsub(':', '-')}.iml") > > which leads me to think that my desires are (i) unreasonable or (ii) > reasonable, but not supported. > > Is there a way to (temporarily) change the project.name for just the > idea target? --=20 Cheers, Peter Donald