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 8165944
27 * @summary test several jar tool input file scenarios with variations on -C
28 * options with/without a --release option. Some input files are
29 * duplicates that sometimes cause exceptions and other times do not,
30 * demonstrating identical behavior to JDK 8 jar tool.
31 * @library /test/lib
32 * @modules jdk.jartool
33 * @run testng InputFilesTest
34 */
35
36 import org.testng.Assert;
37 import org.testng.annotations.AfterMethod;
38 import org.testng.annotations.BeforeMethod;
39 import org.testng.annotations.Test;
40
41 import java.io.ByteArrayOutputStream;
42 import java.io.IOException;
43 import java.io.PrintStream;
44 import java.io.UncheckedIOException;
45 import java.nio.file.Files;
46 import java.nio.file.Path;
47 import java.nio.file.Paths;
48 import java.util.Arrays;
49 import java.util.spi.ToolProvider;
50 import java.util.stream.Stream;
51 import java.util.zip.ZipException;
52
|
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 8165944
27 * @summary test several jar tool input file scenarios with variations on -C
28 * options with/without a --release option. Some input files are
29 * duplicates that sometimes cause exceptions and other times do not,
30 * demonstrating identical behavior to JDK 8 jar tool.
31 * @library /test/lib
32 * @modules jdk.jartool
33 * @build jdk.test.lib.util.FileUtils
34 * jdk.test.lib.Utils
35 * jdk.test.lib.Asserts
36 * jdk.test.lib.JDKToolFinder
37 * jdk.test.lib.JDKToolLauncher
38 * jdk.test.lib.Platform
39 * jdk.test.lib.process.*
40 * @run testng InputFilesTest
41 */
42
43 import org.testng.Assert;
44 import org.testng.annotations.AfterMethod;
45 import org.testng.annotations.BeforeMethod;
46 import org.testng.annotations.Test;
47
48 import java.io.ByteArrayOutputStream;
49 import java.io.IOException;
50 import java.io.PrintStream;
51 import java.io.UncheckedIOException;
52 import java.nio.file.Files;
53 import java.nio.file.Path;
54 import java.nio.file.Paths;
55 import java.util.Arrays;
56 import java.util.spi.ToolProvider;
57 import java.util.stream.Stream;
58 import java.util.zip.ZipException;
59
|