Many thanks guys.  I'm sorry that I've didn't took a deeper look at the
manual.  Since this isn't a real java/groovy project I overlook that
section.

Again, many thanks!

Jp

On Wed, Jul 27, 2011 at 4:08 PM, Adam Murdoch
<[email protected]>wrote:

>
> On 28/07/2011, at 5:20 AM, jean-philippe robichaud wrote:
>
> That was my next thing to try :)
>
> BTW, would you happen to know if it is possible to set custom shell
> environment variables for the unit tests?  My unit test requires the usage
> of a third party library that uses shell variables to find some shared
> libraries.  I can't really set them before running the build because
> different unit tests will require different values for the same shell
> variable.
>
> does the "test" section allows to set shell variables?
>
>
> Yes, you can use the 'environment' methods or property. Have a look at the
> documentation for the Test task type:
> http://gradle.org/current/docs/dsl/org.gradle.api.tasks.testing.Test.html
>
>
> --
> Adam Murdoch
> Gradle Co-founder
> http://www.gradle.org
> VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting
> http://www.gradleware.com
>
>

Reply via email to