12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 8167237
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
29 * not the --release option is preceded by a file name.
30 * @library /test/lib
31 * @modules jdk.jartool/sun.tools.jar
32 * @run testng ReleaseBeforeFiles
33 */
34
35 import org.testng.Assert;
36 import org.testng.annotations.AfterMethod;
37 import org.testng.annotations.BeforeMethod;
38 import org.testng.annotations.Test;
39
40 import java.io.IOException;
41 import java.io.UncheckedIOException;
42 import java.nio.file.Files;
43 import java.nio.file.Path;
44 import java.nio.file.Paths;
45 import java.util.Arrays;
46 import java.util.stream.Stream;
47
48 import jdk.test.lib.util.FileUtils;
49
50 public class ReleaseBeforeFiles {
51 private Runnable onCompletion;
|
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 8167237
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
29 * not the --release option is preceded by a file name.
30 * @library /test/lib
31 * @modules jdk.jartool/sun.tools.jar
32 * @build jdk.test.lib.util.FileUtils
33 * jdk.test.lib.Utils
34 * jdk.test.lib.Asserts
35 * jdk.test.lib.JDKToolFinder
36 * jdk.test.lib.JDKToolLauncher
37 * jdk.test.lib.Platform
38 * jdk.test.lib.process.*
39 * @run testng ReleaseBeforeFiles
40 */
41
42 import org.testng.Assert;
43 import org.testng.annotations.AfterMethod;
44 import org.testng.annotations.BeforeMethod;
45 import org.testng.annotations.Test;
46
47 import java.io.IOException;
48 import java.io.UncheckedIOException;
49 import java.nio.file.Files;
50 import java.nio.file.Path;
51 import java.nio.file.Paths;
52 import java.util.Arrays;
53 import java.util.stream.Stream;
54
55 import jdk.test.lib.util.FileUtils;
56
57 public class ReleaseBeforeFiles {
58 private Runnable onCompletion;
|