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 * @summary Test image creation
27 * @author Jean-Francois Denise
28 * @library ../lib
29 * @modules java.base/jdk.internal.jimage
30 * jdk.jdeps/com.sun.tools.classfile
31 * jdk.jlink/jdk.tools.jlink.internal
32 * jdk.jlink/jdk.tools.jmod
33 * jdk.jlink/jdk.tools.jimage
34 * jdk.compiler
35 * @build tests.*
36 * @run main/othervm -verbose:gc -Xmx1g JLink2Test
37 */
38 import java.io.File;
39 import java.io.FileOutputStream;
40 import java.io.IOException;
41 import java.lang.reflect.Layer;
42 import java.nio.file.Files;
43 import java.nio.file.Path;
44 import java.util.ArrayList;
45 import java.util.Arrays;
46 import java.util.Collections;
47 import java.util.List;
48 import java.util.jar.JarEntry;
49 import java.util.jar.JarOutputStream;
50 import jdk.tools.jlink.internal.PluginRepository;
51 import jdk.tools.jlink.plugin.Plugin;
|
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 * @summary Test image creation
27 * @author Jean-Francois Denise
28 * @library ../lib
29 * @modules java.base/jdk.internal.jimage
30 * jdk.jdeps/com.sun.tools.classfile
31 * jdk.jlink/jdk.tools.jlink.internal
32 * jdk.jlink/jdk.tools.jlink.plugin
33 * jdk.jlink/jdk.tools.jmod
34 * jdk.jlink/jdk.tools.jimage
35 * jdk.compiler
36 * @build tests.*
37 * @run main/othervm -verbose:gc -Xmx1g JLink2Test
38 */
39 import java.io.File;
40 import java.io.FileOutputStream;
41 import java.io.IOException;
42 import java.lang.reflect.Layer;
43 import java.nio.file.Files;
44 import java.nio.file.Path;
45 import java.util.ArrayList;
46 import java.util.Arrays;
47 import java.util.Collections;
48 import java.util.List;
49 import java.util.jar.JarEntry;
50 import java.util.jar.JarOutputStream;
51 import jdk.tools.jlink.internal.PluginRepository;
52 import jdk.tools.jlink.plugin.Plugin;
|