Hi Martin,
Buildr offers a nice integration with Ant. Basically you can reuse any ant
tasks.
You can write things like:
def xmlbeans(files) do
Buildr.ant "xmlbeans" do |ant|
ant.taskdef :name => "xmlbeans",
:classname => "org.apache.xmlbeans.impl.tool.XMLBean",
:classpath => 'org.apache.xmlbeans:xmlbeans:jar:2.3.0'
ant.xmlbeans :srconly => "true",
:srcgendir => "true",
:classgendir => "true",
:javasource => "false" do
files.flatten.each do |file|
ant.fileset File.directory?(file) ? { :dir => file }
: { :file => file }
end
end
end
See http://buildr.apache.org/rdoc/classes/Buildr/Ant.html for general usage.
Some common tasks like Hibernate's are precanned, see [1] and other things
under /addon.
I double checked the website and didn't find anything consistent on this. I
agree there is room for improvement. Maybe the main website could have more
documentation and the 'Recipe' section or the wiki more examples.
Alexis
[1]
http://github.com/alexism/buildr/blob/9e3c2983dc7700c8deeca07542cc3a6bcf8f13ac/addon/buildr/hibernate.rb
On Thu, Feb 12, 2009 at 5:30 PM, Martin Grotzke <
[email protected]> wrote:
> This documentation improvement sounds very good. And gems sounds also
> really cool, that seems to be another advantage over maven - to have a
> built in search for plugins, not only google :)
>
> As I'm just starting with buildr (having the plan to start :)) I am
> looking for some info on how to replace/use mvn/ant stuff like hbm2ddl,
> jetty:run and some common scenarios. Perhaps it would also be useful to
> have a section in the wiki, where users can share their findings and
> configurations? This might be s.th. like "Buildr in example".
>
> Cheers,
> Martin
>
>
> On Wed, 2009-02-11 at 09:30 -0800, Alex Boisvert wrote:
> > On Wed, Feb 11, 2009 at 9:11 AM, Assaf Arkin <[email protected]> wrote:
> >
> > > Maybe change the 'extending' section to be more tutorial like and walk
> > > people through various scenarios?
> >
> >
> > Perhaps with an example on extending with a simple local script and one
> with
> > a gem?
> >
> > alex
>