On Oct 9, 2010, at 8:34 PM, Dhanji R. Prasanna wrote:

> 
> 
> On Sun, Oct 10, 2010 at 3:31 AM, Mingfai <[email protected]> wrote:
> for sure Maven in theory "should" be able to handle different structure and 
> Guice's developers could have their own preference, the maven's structure 
> does have some advantages. Let's compare:
>    src/...
>    test/...
> 
> with:
> 
>    core/src/main/java/...
>    core/src/test/java/...
> 
> Not to start a flame war here, but this comparison seems rather starkly to 
> point out the simplicity and elegance of our current layout. =)
> 

Your layout is as arbitrary as the one I initially selected for Maven. People 
make the same arguments about code formatting. It's arbitrary and subjective. 
The advantage the Maven layout has is that it's a known quantity at this point, 
people look at it and go "Oh, I've seen this before."

The extra paths are to account for the fact that there may be other "main" 
elements aside from Java sources. Resources that need to be packaged, and 
usually processed differently then resources for tests. Grammar files, XSDs and 
it helps remove conditional logic and filters from the internals of Maven. I 
can only tell you from the experience of looking at thousands of build setups 
that shorter path there above ends up costing you a lot more in the long run. 
It's like arguing about variable naming to me. Really you want to try and save 
a few characters? At the cost of general comprehension? It's easy to become 
accustom to what you use all the time, and it gains the magical property of 
being elegant because of that. Everything is arbitrary, it's really a matter of 
what more people are accustom to.

Ant builds from one project to another, from one organization to another always 
vary wildly. So if, for the casual contributor, you make it easier to 
comprehend the project on the whole you've gained something. And I believe 
Maven provides that and is a plus.

> Also, I'm supporting mavenizing as an alternative for our users who are 
> familiar with maven, but it would be more difficult for me to make the 
> argument to replace Ant as the primary build system (that is another 
> discussion for another thread), which I am not proposing right now.
> 

If you run an Ant script and it builds and we run a Maven build and it all 
works why do you care what the layout is?

> Dhanji.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "google-guice" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/google-guice?hl=en.

Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder,  Apache Maven
http://twitter.com/jvanzyl
---------------------------------------------------------

the course of true love never did run smooth ...

 -- Shakespeare



Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder,  Apache Maven
http://twitter.com/jvanzyl
---------------------------------------------------------

Selfish deeds are the shortest path to self destruction.

 -- The Seven Samuari, Akira Kurosawa



-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en.

Reply via email to