You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@buildr.apache.org by Niklaus Giger <ni...@member.fsf.org> on 2012/01/11 14:46:03 UTC
Some examples of using buildr
Hi
In the last two weeks I spent quite a few hours in using buildr.apache.org to
solve build problems and I would like to thanks the developers for their great
work! It takes some time, but buildr almost always allowed an elegant, small
solution to my problems.
I was working at converting the build infrastructure for
http://sourceforge.net/projects/elexis/
to buildr, as I think it would simplify a lot some tasks I want to accomplish
in the near future (e.g. generating Debian package, an Eclipse p2 site, unified
user documentation). As it consists of about 90 Eclipse packages it proved to
be not a trivial task.
As my Jenkins CI at
http://ngiger.dyndns.org/jenkins/view/2.1.7/job/elexis-2.1.7-Buildr/
proves a lot of needed targets are already generated.
I ended up setting up a small project at
https://github.com/ngiger/buildr-examples
where I solved my troubles getting thinks to work. Quoting from the
readme.textile there these are:
* antwrap
** simple example of how to use antwrap. Shows effect of :declarative
** example using Buildr.ant
** shows how to define Java properties
* izpack
** Howto create an IzPack installer for two java projects
** Uses Buildr.ant to wrap the izpack Ant task
* p2site
** Create an eclipse p2site with 2 features (uses buildr4osgi)
* wikitext_to_pdf
** Needs fop and an installed eclipse
** Transforms this readme.textile to a pdf
** uses wikitext_to_xslfo
** uses uildr.ant
** tests whether generated zip file really contains the desired PDF file
* java_and_scala
** handling a project which contains java and scala files and where java files
depend on scala
I would appreciate feedback, whether these buildfiles respect the "best
practices" for using buildr.apache.org. I am also willing to add one or more
of these examples to the
https://cwiki.apache.org/confluence/display/BUILDR/Buildr+HowTos
Please, tell me, which ones you think are worth this effort.
Best regards
--
Niklaus Giger
Re: Some examples of using buildr
Posted by Niklaus Giger <ni...@member.fsf.org>.
Hi alex
Thanks for your advice
> Nice. These kinds of small projects is pretty much how I test/debug when
> questions are asked on this list (and sometimes on my own projects).
>
> As to which are good/interesting, I'd suggest adding "Not finding what you
> want? Take a look at [your github repo] ... for more examples." at the
> bottom of the How-To page and let people do the surfing.
There was a similar note on top of the page. Therefore I added just below the
following hint "Or take a look at buildr-examples for more examples (izpack,
antwrap, textile2pdf, p2site, PDEtests)."
Also I tested that most of my examples work under Windows (not only Linux).
Best regards
> alex
<..>
---
Niklaus Giger
Re: Some examples of using buildr
Posted by Alex Boisvert <al...@gmail.com>.
Nice. These kinds of small projects is pretty much how I test/debug when
questions are asked on this list (and sometimes on my own projects).
As to which are good/interesting, I'd suggest adding "Not finding what you
want? Take a look at [your github repo] ... for more examples." at the
bottom of the How-To page and let people do the surfing.
alex
On Wed, Jan 11, 2012 at 8:46 AM, Niklaus Giger <niklaus.giger@member.fsf.org
> wrote:
> Hi
>
> In the last two weeks I spent quite a few hours in using buildr.apache.orgto
> solve build problems and I would like to thanks the developers for their
> great
> work! It takes some time, but buildr almost always allowed an elegant,
> small
> solution to my problems.
>
> I was working at converting the build infrastructure for
> http://sourceforge.net/projects/elexis/
> to buildr, as I think it would simplify a lot some tasks I want to
> accomplish
> in the near future (e.g. generating Debian package, an Eclipse p2 site,
> unified
> user documentation). As it consists of about 90 Eclipse packages it proved
> to
> be not a trivial task.
> As my Jenkins CI at
> http://ngiger.dyndns.org/jenkins/view/2.1.7/job/elexis-2.1.7-Buildr/
> proves a lot of needed targets are already generated.
>
> I ended up setting up a small project at
> https://github.com/ngiger/buildr-examples
> where I solved my troubles getting thinks to work. Quoting from the
> readme.textile there these are:
>
> * antwrap
> ** simple example of how to use antwrap. Shows effect of :declarative
> ** example using Buildr.ant
> ** shows how to define Java properties
> * izpack
> ** Howto create an IzPack installer for two java projects
> ** Uses Buildr.ant to wrap the izpack Ant task
> * p2site
> ** Create an eclipse p2site with 2 features (uses buildr4osgi)
> * wikitext_to_pdf
> ** Needs fop and an installed eclipse
> ** Transforms this readme.textile to a pdf
> ** uses wikitext_to_xslfo
> ** uses uildr.ant
> ** tests whether generated zip file really contains the desired PDF file
> * java_and_scala
> ** handling a project which contains java and scala files and where java
> files
> depend on scala
>
> I would appreciate feedback, whether these buildfiles respect the "best
> practices" for using buildr.apache.org. I am also willing to add one or
> more
> of these examples to the
> https://cwiki.apache.org/confluence/display/BUILDR/Buildr+HowTos
> Please, tell me, which ones you think are worth this effort.
>
> Best regards
>
> --
> Niklaus Giger
>