buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ittay Dror <ittay.d...@gmail.com>
Subject Re: Manifest
Date Sat, 11 Oct 2008 10:43:45 GMT


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 <http://www.aatmani.com/Aatmani/adclick?adprintid=610>
> generation innovative solutions
>
>
>   

-- 
--
Ittay Dror <ittay.dror@gmail.com>



Mime
View raw message