While not quite the same thing, I have multiple projects that build out of the same source tree and so needed some fine-grained control over includes/excludes. I ended up developing a plugin gradle file for this:

http://meta-jb.svn.sourceforge.net/viewvc/meta-jb/trunk/dev/gradle-plugins/shared-tree.gradle?revision=4150&view=markup

Here is an example of using it:
http://meta-jb.svn.sourceforge.net/viewvc/meta-jb/trunk/dev/ext/cmd/build.gradle?revision=4192&view=markup

Maybe there is something in the plug-in script above that helps you figure out how to proceed in your own use-case.

Hope it helps.
-Paul

Russel Winder wrote:
I find myself having the source tree structured:

        src
                org
                demos

Setting the source tree to 'src' leads to chaos because the demos have
to be compiled independently (as there are duplicate class names).
There are no examples of using exclude in a sourceSets in the manual --
at least not that I can find on a quick search.

Any ideas on how to handle this?

Thanks.



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

   http://xircles.codehaus.org/manage_email


Reply via email to