equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2016, 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. |
49 env.put("TZ", "GMT"); |
49 env.put("TZ", "GMT"); |
50 System.out.println("Current TimeZone:" + pb.environment().get("TZ")); |
50 System.out.println("Current TimeZone:" + pb.environment().get("TZ")); |
51 JDKToolLauncher launcher = JDKToolLauncher.createUsingTestJDK("java"); |
51 JDKToolLauncher launcher = JDKToolLauncher.createUsingTestJDK("java"); |
52 //Setting invalid TimeZone using VM option |
52 //Setting invalid TimeZone using VM option |
53 launcher.addToolArg("-Duser.timezone=Foo/Bar") |
53 launcher.addToolArg("-Duser.timezone=Foo/Bar") |
|
54 .addToolArg("-ea") |
|
55 .addToolArg("-esa") |
54 .addToolArg("-cp") |
56 .addToolArg("-cp") |
55 .addToolArg(cp) |
57 .addToolArg(cp) |
56 .addToolArg("Bug8066652"); |
58 .addToolArg("Bug8066652"); |
57 |
59 |
58 pb.command(launcher.getCommand()); |
60 pb.command(launcher.getCommand()); |