Stefan Groschupf wrote:
I'm not sure if I clearly understand what you proposing. But I'm very concerned here! It is ok if a open source project is self-confident but you will win zero users if a project is arrogant. Let your users decide it it make sense to execute from a project root. (All tools I know do this, eg eclipse, intellij etc) Relaying on the project dir structure is a very common use case for loading test data, resources etc. To be honest if we need to change all tests that are relay on a project structure to be able to use gradle, I would prefer a other build tool. If a new users tests gradle and no test working any more, than I'm very sure he will turn around very quick.


I don't think its quite as bad as you image. To get the maven behaviour you can either:

- run your tests in fork mode:

test.options.fork()

- set the user.dir property before you run the tests:

test.doFirst { System.setProperty('user.dir', projectDir.absolutePath }


We could even make fork mode the default for tests.


Adam

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

   http://xircles.codehaus.org/manage_email


Reply via email to