equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2016, 2017, 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. |
25 * @test |
25 * @test |
26 * @bug 8167237 |
26 * @bug 8167237 |
27 * @summary test that both old style command line options and new gnu style |
27 * @summary test that both old style command line options and new gnu style |
28 * command line options work with the --release option whether or |
28 * command line options work with the --release option whether or |
29 * not the --release option is preceded by a file name. |
29 * not the --release option is preceded by a file name. |
30 * @library /lib/testlibrary |
30 * @library /test/lib |
31 * @modules jdk.jartool/sun.tools.jar |
31 * @modules jdk.jartool/sun.tools.jar |
32 * @build jdk.testlibrary.FileUtils |
|
33 * @run testng ReleaseBeforeFiles |
32 * @run testng ReleaseBeforeFiles |
34 */ |
33 */ |
35 |
34 |
36 import org.testng.Assert; |
35 import org.testng.Assert; |
37 import org.testng.annotations.AfterMethod; |
36 import org.testng.annotations.AfterMethod; |
44 import java.nio.file.Path; |
43 import java.nio.file.Path; |
45 import java.nio.file.Paths; |
44 import java.nio.file.Paths; |
46 import java.util.Arrays; |
45 import java.util.Arrays; |
47 import java.util.stream.Stream; |
46 import java.util.stream.Stream; |
48 |
47 |
49 import jdk.testlibrary.FileUtils; |
48 import jdk.test.lib.util.FileUtils; |
50 |
49 |
51 public class ReleaseBeforeFiles { |
50 public class ReleaseBeforeFiles { |
52 private Runnable onCompletion; |
51 private Runnable onCompletion; |
53 |
52 |
54 @BeforeMethod |
53 @BeforeMethod |