buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ittay Dror (Freiman)" <ittay.d...@gmail.com>
Subject Re: Manifest
Date Mon, 13 Oct 2008 16:51:36 GMT
On Mon, Oct 13, 2008 at 6:10 PM, Ittay Dror <ittay.dror@gmail.com> wrote:

>  The reason is that the block in Buildfile runs after the block in JarTask
> (actually WithManifest) and therefore the manifest is already processed.
>
>
>  You have several options:
>
> 1. create a file task that processes the manifest and writes it to a file.
> assign this task to jar.manifest (outside of a code block)
>
> 2. use 'send(:prepare)' instead of 'enhance' so that your code is executed
> first
>
> 3. create a task with the code block and make the jar task depend on it
>

This might also work
jar = package(:jar)
jar.manifest = nil
block = proc do |zip|
   manifest = Buildr::Packaging::Java::Manifest.new('META-INF/MANIFEST.MF')
  manifest.main['Bundle-Version'] = VERSION_NUMBER
  zip << manifest.to_s
end
jar.path('META-INF').include(block, :as => 'MANIFEST.MF')


>  ittay
>
> Nagaraj wrote:
>
> Thanks for the response.
> Please find beehyv_sample.zip file which contains buildfile as well as
> MANIFEST.MF file
>
>
>  please send your manifest file and i'll see if i can have a look.
>
>
>  Thanks
>
> Nagaraj
>
>
>
>   _____
>
> Aatmani - Providing <http://www.aatmani.com/Aatmani/adclick?adprintid=619> <http://www.aatmani.com/Aatmani/adclick?adprintid=619>
> incentivized, targeted, content Advertisements
>
>
>
>
> --
> --
> Ittay Dror <ittay.dror@gmail.com> <ittay.dror@gmail.com>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message