Return-Path: Delivered-To: apmail-incubator-buildr-user-archive@locus.apache.org Received: (qmail 62255 invoked from network); 11 Oct 2008 10:45:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Oct 2008 10:45:24 -0000 Received: (qmail 99587 invoked by uid 500); 11 Oct 2008 10:45:23 -0000 Delivered-To: apmail-incubator-buildr-user-archive@incubator.apache.org Received: (qmail 99547 invoked by uid 500); 11 Oct 2008 10:45:22 -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 99536 invoked by uid 99); 11 Oct 2008 10:45:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Oct 2008 03:45:22 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ittay.dror@gmail.com designates 72.14.220.159 as permitted sender) Received: from [72.14.220.159] (HELO fg-out-1718.google.com) (72.14.220.159) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Oct 2008 10:44:16 +0000 Received: by fg-out-1718.google.com with SMTP id l26so602718fgb.26 for ; Sat, 11 Oct 2008 03:44:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=7KMTjQMXBfVAZS5/PXWQPvELnK4IcZZEgYs8dSaVoqc=; b=QZyLAjTK4uAfj7ntA0pgUl8xrm/IniWBjm7hZr/BFvfQVQmt2rUqTtSOcoiao90KpU Z9UQo4bdva6+yyqnqaxWL7p+lzS8fWsFbdlmHLd063MaEY8UecWsnKZ/GB+mZPnAPLMN I8z73BuSo6EaC9T8tCt1RIGeEvQroYlSEd4hs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=wFiCDClsUw+DaqnVSC+LBXHj/Zrt47ebS74kfnffwGodNnG28HmCP2b5XEfZ82cluE L9RNn5eu3D4TaB3/lfZbKH5apMr8vkGfH8bxLPuPNLklXGuaDldj5Y46IKy0XYenqFQ9 L3Ie1gd9hOjwWyUG/AFzW5snfM/IIU44eivu0= Received: by 10.86.95.8 with SMTP id s8mr2696624fgb.53.1223721874388; Sat, 11 Oct 2008 03:44:34 -0700 (PDT) Received: from ?192.168.1.9? (bzq-84-108-89-36.cablep.bezeqint.net [84.108.89.36]) by mx.google.com with ESMTPS id d6sm3612082fga.2.2008.10.11.03.44.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 11 Oct 2008 03:44:33 -0700 (PDT) Message-ID: <48F08361.6060308@gmail.com> Date: Sat, 11 Oct 2008 12:43:45 +0200 From: Ittay Dror User-Agent: Thunderbird 2.0.0.17 (X11/20080925) MIME-Version: 1.0 To: buildr-user@incubator.apache.org Subject: Re: Manifest References: <003101c92af5$6b7a6fb0$426f4f10$@com> In-Reply-To: <003101c92af5$6b7a6fb0$426f4f10$@com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Nagaraj wrote: > Hi, > > > > While creating a jar file, I am adding manifest.mf using > > > > package(:jar).with :manifest=>_("META-INF/MANIFEST.MF") > > > > Now I want to dynamically set the value of Bundle-Version in manifest.mf. > > > > I tried the following in the buildfile > > > > package(:jar).with > :manifest=>manifest.replace('Bundle-Version'=>VERSION_NUMBER) > > > > > > But it is not working. Is there any way I can achieve this? I am new to Ruby > and Buildr. > > > > Maybe try this? (didn't test it) package(:jar).prepare do |jar| jar.manifest = Buildr::Packaging::Java::Manifest.new('META-INF/MANIFEST.mf') jar.manifest.main['Bundle-Version'] = VERSION_NUMBER end Ittay > Thanks in advance > > > > Nagaraj > > > > > > _____ > > Visit us for next > generation innovative solutions > > > -- -- Ittay Dror