On Apr 16, 2009, at 12:16 PM, Adam Murdoch wrote:
Hans Dockter wrote:
A while ago someone proposed to rename the 'testCompile'
configuration (and task) to 'compileTests'. I think this is a good
idea. We might also rename the testRuntime configuration then. But
I'm not sure to what.
'runTests' sounds nice, but is kind of inconsistent with the normal
'runtime' configuration. 'runtimeTests' is another choice. What
about the 'test' task? Should we rename it to runTests? Then it
would be consistent with the configuration and somehow more
expressive than just 'test'.
Thoughts?
It feels to me that the names of the configurations should be nouns,
and the names of the tasks should be verbs. That is, the name of the
configuration should reflect what the configuration means, and the
name of the task should reflect what it does.
The only change you've suggested above that really works for me is
to rename the 'testCompile' task (and only the task) to
'compileTests'. The 'testCompile' configuration needs a better name,
but I'm not sure what.
This makes sense to me. I have renamed the testCompile task to
compileTests. I have also renamed the resources task to
processResources (the same for testResources).
- Hans
--
Hans Dockter
Gradle Project lead
http://www.gradle.org
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email