I'm not using this currently for java.library.path, but I am passing other -D
args to my tests using the jvmArgs property, so I think you could do:
test {
jvmArgs = '-Djava.library.path=mypath'
}
On Jun 4, 2010, at 5:54 AM, mh838 wrote:
>
> Hi,
>
> I was wondering whether there is a simple way to instruct the Java plugin to
> run the tests with a specific value of java.library.path? We use a certain
> java library that uses JNI. From the repository I retrieve the two files
> (.jar, .so) and I'd like to set the proper java.library.path so that I could
> run the tests.
>
> With Maven this could be achieved in the following way:
> http://buildanddeploy.com/node/14
> In fact, for Maven there is a tiny hack needed in addition to that, but it
> doesn't matter.
>
> Cheers,
> Milosz
> --
> View this message in context:
> http://old.nabble.com/-Java--Passing-java.library.path-to-the-testrunner-tp28777866p28777866.html
> Sent from the gradle-user mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email