Dean,

On Thu, 2009-05-28 at 10:15 -0700, Dean Schulze wrote:
> 
> Most projects use something like this:
> 
> Code goes in
> 
>     src/com/...
> 
> Tests go in
> 
>     /src/test/func/...
>     src/test/unit/...
> 
> 

It may be that in your experience most projects are structured like
this, but in my experience a very different structure is the majority.
We need to separate personal experience from objective statistics.

The Gradle Java plugin gives you the opportunity to amend the default
structure, so there is no problem in conditioning it EXCEPT . . .

By having source in src and tests in src/tests you are going to give
yourself real problems with any convention based system due to the tests
being a sub-directory of the source.  As Maven 1 proved you really meed
to separate source and tests into two distinct hierarchies.  As Maven 2
showed in order to support multi-language working you have to partition
by language as well, hence the default of

        src/main/java
        src/test/java

for the location of Java source and tests respectively.
 
-- 
Russel.
=============================================================================
Dr Russel Winder      Partner
                                            xmpp: [email protected]
Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,   f: +44 8700 516 084   voip: sip:[email protected]
London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to