You can use
http://hg.openjdk.java.net/jdk9/dev/jdk/file/d4d7f1f0d688/test/lib/security/SecurityTools.java
which would simplify the code. This lib was added to be used in such tests.
Note that SecurityTools addresses a couple of known issues with running
security tools on machines with different locales, please see
"user.language" and "user.country" system properties
Artem
On 12/12/2016 02:43 PM, Amanda Jiang wrote:
Hi All,
Please help to review following changeset, which tests that jarsigner
tool works with multi-release JAR files.
Webrev: http://cr.openjdk.java.net/~amjiang/8075618/webrev.01/
Bug: https://bugs.openjdk.java.net/browse/JDK-8075618
Thanks,
Amanda