equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2009, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2009, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
67 //will go into infinite recursion trying to get enough permissions for |
67 //will go into infinite recursion trying to get enough permissions for |
68 //printing Date of failing certificate unless fix is applied. |
68 //printing Date of failing certificate unless fix is applied. |
69 JDKToolLauncher launcher = JDKToolLauncher.createUsingTestJDK("java"); |
69 JDKToolLauncher launcher = JDKToolLauncher.createUsingTestJDK("java"); |
70 launcher.addToolArg("-Djava.security.manager") |
70 launcher.addToolArg("-Djava.security.manager") |
71 .addToolArg("-Djava.security.debug=access,failure,policy") |
71 .addToolArg("-Djava.security.debug=access,failure,policy") |
|
72 .addToolArg("-ea") |
|
73 .addToolArg("-esa") |
72 .addToolArg("-cp") |
74 .addToolArg("-cp") |
73 .addToolArg(jarPath) |
75 .addToolArg(jarPath) |
74 .addToolArg("TimeZoneDatePermissionCheck"); |
76 .addToolArg("TimeZoneDatePermissionCheck"); |
75 |
77 |
76 int exitCode = ProcessTools.executeCommand(launcher.getCommand()) |
78 int exitCode = ProcessTools.executeCommand(launcher.getCommand()) |