On Sat, 2010-04-24 at 06:12 +1000, Adam Murdoch wrote:
>
> On 21/04/10 10:23 PM, 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?
> >
>
> Something like:
>
> sourceSets.main.java.exclude 'demos/**'
>
> or
>
> sourceSets {
> main {
> java {
> exclude 'demos/**'
> }
> }
> }
> I thought I had tried that, but clearly I hadn't, as trying it again works fine. Sorry for what turned out to be a stupid question per se. The one thing we can take from this is that the user manual needs some new examples showing the above at work. Sadly the source and test code is interleaved in this project so the actual source set gets very complicated :-( -- Russel. ============================================================================= Dr Russel Winder t: +44 20 7585 2200 voip: sip:[email protected] 41 Buckmaster Road m: +44 7770 465 077 xmpp: [email protected] London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
signature.asc
Description: This is a digitally signed message part
