That's not really keeping your source trees seperate...it's just
pretending that they are in your file system while making them the
same in Gradle itself.

~~ Robert.



On Thu, Nov 17, 2011 at 1:54 PM, Carr, Brian M
<[email protected]> wrote:
> If you want to keep your source trees separate, you may also add the 
> following to your build.gradle:
>
> sourceSets.main.java.srcDirs = []
> sourceSets.main.groovy.srcDirs = ['src/main/groovy', 'src/main/java']
> sourceSets.test.java.srcDirs = []
> sourceSets.test.groovy.srcDirs = ['src/test/groovy', 'src/test/java']
>
> ___________________________
> Brian M. Carr
> Senior Software Engineer
> Identity Management, ITS Applications
> University of Texas at Austin
> V: 512-232-6419
> F: 512-471-5746
> [email protected]
>
> On Nov 17, 2011, at 12:26 PM, Alexander von Zitzewitz wrote:
>
>> Thanks, that worked..
>>
>> On Nov 17, 2011, at 1:06 PM, Robert Fischer wrote:
>>
>>> I'm pretty sure you can put *.java files under /src/*/groovy and they
>>> will compile just fine.
>>>
>>> ~~ Robert.
>>>
>>>
>>>
>>> On Thu, Nov 17, 2011 at 12:46 PM, Alexander von Zitzewitz
>>> <[email protected]> wrote:
>>>> Hello,
>>>>
>>>> I am having a project with groovy and java sources, using gradle version 
>>>> 1.0 M4.
>>>>
>>>> Now some java classes depend on groovy classes and the other way around.
>>>>
>>>> When building from scratch the compileJava tasks fails, because it cannot 
>>>> find the groovy classes used by the Java classes and compileGroovy has not 
>>>> been executed yet. Is this a chicken-egg problem? How would I solve that?
>>>>
>>>> Thanks for any hep in advance.
>>>>
>>>> Best regards
>>>>
>>>> Alexander von Zitzewitz
>>>>
>>>> hello2morrow Inc.
>>>> 1 (877) 294-6327
>>>>
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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
>>>
>>>
>>
>> Best regards
>>
>> Alexander von Zitzewitz
>>
>> hello2morrow Inc.
>> 1 (877) 294-6327
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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