Yes, I'd most likely generate sources to 'build\src\' or something similar,
although another option would be to generate to 'src\generated\java' or the
like.  I've done things both ways, and the generator tool I'm working on
will support either (user tells it where to dump code).

The Compile task has a srcDirs attribute, correct?  Modifying that in my
build script to include any generated source directories seems easy enough
(and FAR easier than in Maven).  Let me know if you think that this approach
wouldn't work.  Or are you saying that Gradle assumes any values specified
for 'srcDirs' are assumed to be under 'src'?  If the latter, that is
something that I'd hope could be changed.  


hdockter wrote:
> 
> 
> Hi Allan,
> 
> my approach seems to work. I'm just so tired that I have to finish it  
> tomorrow.
> 
> One thing I've recognized is, that Gradle assumes all source dirs to  
> be under 'src'. I guess this is not what you want when doing code  
> generation. I suppose you would want to have the generated src dirs  
> in the build dir, right?
> 
> This is easy to change.
> 
> - Hans
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Advice-on-multi-project-build-source-setup-tp16960881p16992216.html
Sent from the gradle-user mailing list archive at Nabble.com.


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

    http://xircles.codehaus.org/manage_email


Reply via email to