Return-Path: Delivered-To: apmail-incubator-buildr-user-archive@locus.apache.org Received: (qmail 73626 invoked from network); 13 Aug 2008 18:15:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Aug 2008 18:15:47 -0000 Received: (qmail 8865 invoked by uid 500); 13 Aug 2008 18:15:46 -0000 Delivered-To: apmail-incubator-buildr-user-archive@incubator.apache.org Received: (qmail 8843 invoked by uid 500); 13 Aug 2008 18:15:46 -0000 Mailing-List: contact buildr-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: buildr-user@incubator.apache.org Delivered-To: mailing list buildr-user@incubator.apache.org Received: (qmail 8832 invoked by uid 99); 13 Aug 2008 18:15:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Aug 2008 11:15:46 -0700 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of arkin@intalio.com does not designate 72.14.204.231 as permitted sender) Received: from [72.14.204.231] (HELO qb-out-0506.google.com) (72.14.204.231) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Aug 2008 18:14:50 +0000 Received: by qb-out-0506.google.com with SMTP id e12so141714qba.0 for ; Wed, 13 Aug 2008 11:15:08 -0700 (PDT) Received: by 10.86.65.11 with SMTP id n11mr186283fga.64.1218651307732; Wed, 13 Aug 2008 11:15:07 -0700 (PDT) Received: by 10.86.81.13 with HTTP; Wed, 13 Aug 2008 11:15:07 -0700 (PDT) Message-ID: <3de5d7d20808131115j5cb5a904mc6ee91bdd19cb913@mail.gmail.com> Date: Wed, 13 Aug 2008 11:15:07 -0700 From: "Assaf Arkin" To: buildr-user@incubator.apache.org Subject: Re: specifying metadata for an artifact In-Reply-To: <48A2DBFB.6060602@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48A2DBFB.6060602@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Aug 13, 2008 at 6:04 AM, Ittay Dror wrote: > Hi, > > How can I add metadata to an artifact spec so it can be used by plugins? (in > my case the same artifact is used in different ways according to this > metadata). I thought specifying the artifact as a hash would allow me to put > keys that the plugin will use, but those specs pass through several stages > of sanitation which leaves just the standard attributes. A spec is an identifier of the artifact, much like a URL it tells you how to locate the artifact, it doesn't tell you anything else about the artifact. Artifacts are designed around one particular naming scheme, coupled to the way they're located in remote and local repositories. If you want to change the task itself, it's just a Ruby object that you can easily extend or include other modules in there. Assaf > > I'd appriciate your suggestions, > Ittay > > -- > -- > Ittay Dror > > >