On 19/07/2011, at 4:52 AM, Hans Dockter wrote:

> At the moment if you need to generate sources, you typically create a 
> dependencies between the compile task of the java source set and the task 
> that generates the sources. Our antlr plugin does the same. It is a very 
> common use case in the enterprise. I think a SourceSet functionality like we 
> have for generate resources would be a much nicer solution.
> 
> Thoughts?

I think source generation is slightly different in that it's likely to be more 
complex. I am also not sure what benefit it would have over…

sourceSets {
        main {
                srcDir someGenerationTask.outputs.files
        }
}

I have to admit that I don't know how this plays with directories vs files. 
That is, how the output of a task needs to be structured to spit out a root 
“srcDir”. 

-- 
Luke Daley
Principal Engineer, Gradleware 
http://gradleware.com


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to