You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@buildr.apache.org by thierry henrio <th...@gmail.com> on 2009/07/08 23:11:29 UTC
could buildr build a package made of various assemblies ?
Hi all, our company produce various and unstandardized assemblies : tar.bz2,
zip
each assembly has its own layout, and mainly consist in jar files
there is no standardized repository to host jar files
it is a real pain to make a runnable package, and yet it is required
our customer are puzzled and so am I
so, I would like to make a package made of bits of tar, zip, jar, text files
I have no (more) java source to compile
Following specification could apply
given
foo-1.1.tar.bz2 containing [foo-core-0.9.jar, foo-foo-1.1.jar]
moo-2.3.zip containing [lib/moo-2.3.jar]
when I package foomoo-2.3.1.zip
then content is [lib-foo/foo-core-0.9.jar,
lib-foo/foo-foo-1.1.jar, lib-moo/moo-2.3.jar]
I failed to find in documentation whereas this is possible with buildr at
this time
Do you think buildr should be able to do that ?
If not, do you know of any other library that could implement it ?
If not, would you give some advice for code that could give me hints of
implementation ?
I hope this post is not totally irrelevant to this list
Regards,
Thierry
Re: could buildr build a package made of various assemblies ?
Posted by Alex Boisvert <bo...@intalio.com>.
Yes, Buildr can help you with that although the DSL isn't targeted at your
specific use-case and there may be areas where you'll need to do some
additional work. Off the top of my head, I don't think we support
decompressing bzip2 files and untaring, although there are Ruby libraries
for doing both. You may run into limitations with your include/exclude
requirement (https://issues.apache.org/jira/browse/BUILDR-186) and maybe
others but overall it seems very doable.
alex
On Wed, Jul 8, 2009 at 4:42 PM, thierry henrio <th...@gmail.com>wrote:
> Hello, AlexI'm happy buildr can do what I said (even if I do not know how
> to
> do it at this time)
>
> there are indeed unexpressed requirements
> - should be easy and fluent
> - package requires files generated from templates before package
> - should include / exclude files from assembly on a given pattern
> - customer should have the ability to add artifacts and files to match
> their
> own need
> - there should be a means of resolving and caching required assemblies :
> foo-${version}.tar.bz2 should be get from local cache if available, else
> from a configured "repository" path (
> http://ftp.foo.com/${customer}/foo/${version}<http://ftp.foo.com/$%7Bcustomer%7D/foo/$%7Bversion%7D>
> )
> - should be portable (win, linux, solaris, ...)
>
> I fear one "script" will not fit all customers, and hope a dsl should
>
> Can buildr still do all that ?
>
> Curious, Thierry
>
Re: could buildr build a package made of various assemblies ?
Posted by thierry henrio <th...@gmail.com>.
Hello, AlexI'm happy buildr can do what I said (even if I do not know how to
do it at this time)
there are indeed unexpressed requirements
- should be easy and fluent
- package requires files generated from templates before package
- should include / exclude files from assembly on a given pattern
- customer should have the ability to add artifacts and files to match their
own need
- there should be a means of resolving and caching required assemblies :
foo-${version}.tar.bz2 should be get from local cache if available, else
from a configured "repository" path (
http://ftp.foo.com/${customer}/foo/${version})
- should be portable (win, linux, solaris, ...)
I fear one "script" will not fit all customers, and hope a dsl should
Can buildr still do all that ?
Curious, Thierry
Re: could buildr build a package made of various assemblies ?
Posted by Alex Boisvert <bo...@intalio.com>.
The short answer is yes, buildr can do that. In fact, even a bash script
could do that easily... which kinda begs the question as to why use buildr
for this and not some other simpler mean, including plain-old Ruby
scripting. I have a feeling you haven't expressed all your requirements,
so only you can answer this.
alex
On Wed, Jul 8, 2009 at 2:11 PM, thierry henrio <th...@gmail.com>wrote:
> Hi all, our company produce various and unstandardized assemblies :
> tar.bz2,
> zip
> each assembly has its own layout, and mainly consist in jar files
> there is no standardized repository to host jar files
>
> it is a real pain to make a runnable package, and yet it is required
> our customer are puzzled and so am I
>
> so, I would like to make a package made of bits of tar, zip, jar, text
> files
> I have no (more) java source to compile
>
> Following specification could apply
>
> given
> foo-1.1.tar.bz2 containing [foo-core-0.9.jar, foo-foo-1.1.jar]
> moo-2.3.zip containing [lib/moo-2.3.jar]
> when I package foomoo-2.3.1.zip
> then content is [lib-foo/foo-core-0.9.jar,
> lib-foo/foo-foo-1.1.jar, lib-moo/moo-2.3.jar]
>
> I failed to find in documentation whereas this is possible with buildr at
> this time
>
> Do you think buildr should be able to do that ?
> If not, do you know of any other library that could implement it ?
> If not, would you give some advice for code that could give me hints of
> implementation ?
>
> I hope this post is not totally irrelevant to this list
>
> Regards,
> Thierry
>
Re: could buildr build a package made of various assemblies ?
Posted by Assaf Arkin <as...@labnotes.org>.
On Wed, Jul 8, 2009 at 2:11 PM, thierry henrio <th...@gmail.com>wrote:
> Hi all, our company produce various and unstandardized assemblies :
> tar.bz2,
> zip
> each assembly has its own layout, and mainly consist in jar files
> there is no standardized repository to host jar files
>
> it is a real pain to make a runnable package, and yet it is required
> our customer are puzzled and so am I
>
> so, I would like to make a package made of bits of tar, zip, jar, text
> files
> I have no (more) java source to compile
>
> Following specification could apply
>
> given
> foo-1.1.tar.bz2 containing [foo-core-0.9.jar, foo-foo-1.1.jar]
> moo-2.3.zip containing [lib/moo-2.3.jar]
> when I package foomoo-2.3.1.zip
> then content is [lib-foo/foo-core-0.9.jar,
> lib-foo/foo-foo-1.1.jar, lib-moo/moo-2.3.jar]
>
> I failed to find in documentation whereas this is possible with buildr at
> this time
You can use the merge method to include the contents of one zip inside
another, but there's no support for merging tarballs into zips:
http://buildr.apache.org/packaging.html
Assaf
>
>
> Do you think buildr should be able to do that ?
> If not, do you know of any other library that could implement it ?
> If not, would you give some advice for code that could give me hints of
> implementation ?
>
> I hope this post is not totally irrelevant to this list
>
> Regards,
> Thierry
>