Hi Daniel,
* @run testng/othervm/java.security.policy=FilePublisherPermsTest1.policy
Does this actually work as expected? I thought the syntax was:
@run testng/othervm/policy=<file>
I couldn't get the test to run with the latter but noticed that most
tests that are run with testng use the 'java.security.policy' option. It
works as expected.
And FWIW there some subtlety with
othervm/policy=<file>
versus
othervm/policy==<file>
and I never remember which one should be used.
Here we do want the default.policy files to be extended, and not
replaced. So you may have to go with == (maybe)
That's right, any I actually wasn't aware of the '==' option. According
to [1], ‘==’ sets a *sole* policy file, whereas ‘=’ sets an *additional*
file. So we want to go with ‘=’.
Regards,
Julia
[1]
https://docs.oracle.com/javase/7/docs/technotes/guides/security/PolicyFiles.html
(section: Specifying an Additional Policy File at Runtime)