OK so I hadn't run into just putting code outside a task in the build
file before, so hence the question. Adding to classes caused a
circular dependency, but adding

build.dependsOn demoClasses

worked.

- Peace
Dave


On Tue, Sep 21, 2010 at 11:56 AM, Dave King <[email protected]> wrote:
> Not yet.  Any advice on where one would place that bit of code?
>
> - Peace
> Dave
>
> On Tue, Sep 21, 2010 at 2:07 AM, Rolf Suurd <[email protected]> wrote:
>> Hey Dave,
>>
>> Have you tried to add "classes.dependsOn demoClasses" ?
>>
>> Greets Rolf
>>
>> -----Oorspronkelijk bericht-----
>> Van: Dave King [mailto:[email protected]]
>> Verzonden: maandag 20 september 2010 18:29
>> Aan: [email protected]
>> Onderwerp: [gradle-user] adding a source set to the default build
>>
>> New to Gradle, so I may just be missing the correct terms to find the
>> documentation.
>>
>> In our project tree under src we have main, test and demo. main and test
>> compile when I type gradle clean build. I've added a source set for
>> demo that builds with gradle demoClasses.  What I'm missing is how to
>> add demo to the list of things that build when I run gradle clean
>> build.
>>
>> Anyone else get the dradle song in their head when working with Gradle?
>>
>> "Gradle, Gradle, Gradle
>> I want my src to build..."
>>
>> - Peace
>> Dave
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>>
>> Geen virus gevonden in het binnenkomende-bericht.
>> Gecontroleerd door AVG - www.avg.com
>> Versie: 9.0.851 / Virusdatabase: 271.1.1/3148 - datum van uitgifte: 09/20/10
>> 19:04:00
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>>
>>
>

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

    http://xircles.codehaus.org/manage_email


Reply via email to