Did you take a look at http://buildr.apache.org/extending.html ?
I think it describes how to create an extension that's fairly close to what you want to do... you can easily add your "gwt_compile" method in there that would return project-local instance of your gwt compile task. To run gwt compile after "java compile" you can simply enhance the existing compile task: compile.enhance do # GWT stuff end (you can do this in after_define if gwt_compile was called and options were set) Ask more questions if you need help. alex On Fri, Jul 24, 2009 at 3:01 PM, Sten Roger Sandvik <[email protected]> wrote: > Hi. > > I'm new to BuildR and are trying to convert an existing Maven 2 project to > both buildr and gradle. Really tired of struggling with maven flaws and I'm > in need of something new. So, the first thing I'm encoutering with buildr > is > how to create extensions. It seems that a gwt-compile extension is somewhat > missing. > > Now, the question is: how should I proceed to create such an extension? It > should run gwt compile after "java compile" step and only if something like > "gwt_compile.with <...>" is expressed. > > BR, > Sten Roger Sandvik >
