How can I pass java.library.path to TestNG?
I need to do the equivalent of
j开发者_JAVA技巧ava -Djava.library.path=/blah
If you are bootstrapping a web server, you can write it in the run configuration script in the web server.
For instance in JBoss look at this answer.
You use the jvmarg ant tag like
<jvmarg value="-Djava.library.path=${basedir}\lib" />
This is a system property that's interpreted by the JVM, why would TestNG care about it?
精彩评论