buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Grotzke <martin.grot...@javakaffee.de>
Subject How to generate sources for/before compile
Date Thu, 11 Jun 2009 23:25:16 GMT
Hi,

I'm just wondering what's the best way to generate sources before the
compile task is executed, whereas the generated sources shall also be
compiled.

The additional sources are e.g. generated with an ant task:

task :generatesources do
  ant('generate') do |ant|
    ant.taskdef :name=>'myTask', :classname=>'some.AntTask', :classpath=>'path/to/jar.jar'
    ant.myTask :targetDir=>_('target/generated-sources'), :someProp=>'some/path'
  end
end

Thanx for your help,
cheers,
Martin



Mime
View raw message