test/jdk/tools/jlink/ImageFileCreatorTest.java
author mikael
Mon, 20 Aug 2018 14:19:30 -0700
changeset 51464 d96e6839e83d
parent 47216 71c04702a3d5
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
     1
/*
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
     2
 * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
     4
 *
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
     7
 * published by the Free Software Foundation.
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
     8
 *
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    13
 * accompanied this code).
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    14
 *
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    18
 *
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    21
 * questions.
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    22
 */
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    23
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    24
import java.io.ByteArrayInputStream;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    25
import java.io.ByteArrayOutputStream;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    26
import java.io.DataOutputStream;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    27
import java.io.IOException;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    28
import java.io.InputStream;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    29
import java.nio.ByteOrder;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    30
import java.nio.file.Path;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    31
import java.util.ArrayList;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    32
import java.util.Collections;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    33
import java.util.HashSet;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    34
import java.util.List;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    35
import java.util.Set;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    36
import java.util.stream.Stream;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    37
import jdk.tools.jlink.internal.Archive;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    38
import jdk.tools.jlink.internal.ImageFileCreator;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    39
import jdk.tools.jlink.internal.ImagePluginStack;
39321
c60f34e8c057 8160641: PostProcessingPlugin and ExecutableImage should not be part of plugin API
sundar
parents: 38320
diff changeset
    40
import jdk.tools.jlink.internal.ExecutableImage;
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    41
import jdk.tools.jlink.builder.ImageBuilder;
39834
53a6fb443c20 8162538: plugin API should avoid read only pool, have module view separated from resource view and have pool builder to modify
sundar
parents: 39321
diff changeset
    42
import jdk.tools.jlink.plugin.ResourcePool;
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    43
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    44
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    45
/*
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    46
 * @test
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    47
 * @summary ImageFileCreator class test
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    48
 * @author Jean-Francois Denise
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    49
 * @modules jdk.jlink/jdk.tools.jlink.internal
38320
e24c7029e8ba 8156914: jlink API minor cleanups
sundar
parents: 37779
diff changeset
    50
 *          jdk.jlink/jdk.tools.jlink.builder
43185
d75d9ff8d4e7 8171380: Remove all exports from jdk.jlink
chegar
parents: 40556
diff changeset
    51
 *          jdk.jlink/jdk.tools.jlink.plugin
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    52
 *          java.base/jdk.internal.jimage
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    53
 * @run main/othervm -verbose:gc -Xmx1g ImageFileCreatorTest
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    54
 */
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    55
public class ImageFileCreatorTest {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    56
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    57
    private static class TestArchive implements Archive {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    58
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    59
        private final String name;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    60
        private final List<Entry> entries = new ArrayList<>();
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    61
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    62
        private TestArchive(String name, List<String> entries) {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    63
            this.name = name;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    64
            for (String p : entries) {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    65
                this.entries.add(new TestEntry(p, p));
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    66
            }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    67
        }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    68
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    69
        @Override
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    70
        public String moduleName() {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    71
            return name;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    72
        }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    73
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    74
        @Override
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    75
        public Stream<Entry> entries() {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    76
            return entries.stream();
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    77
        }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    78
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    79
        @Override
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    80
        public Path getPath() {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    81
            return null;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    82
        }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    83
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    84
        @Override
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    85
        public void open() throws IOException {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    86
        }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    87
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    88
        @Override
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    89
        public void close() throws IOException {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    90
        }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    91
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    92
        private class TestEntry extends Entry {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    93
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    94
            TestEntry(String path, String name) {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    95
                super(TestArchive.this, path, name, Entry.EntryType.CLASS_OR_RESOURCE);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    96
            }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    97
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    98
            @Override
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    99
            public long size() {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   100
                return 0;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   101
            }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   102
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   103
            @Override
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   104
            public InputStream stream() throws IOException {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   105
                return new ByteArrayInputStream(new byte[0]);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   106
            }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   107
        }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   108
    }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   109
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   110
    public static void main(String[] args) throws Exception {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   111
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   112
        {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   113
            List<String> entries = new ArrayList<>();
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   114
            entries.add("classes/class");
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   115
            test(entries);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   116
        }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   117
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   118
        {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   119
            // Add an entry that is a directory, that is wrong
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   120
            List<String> entries = new ArrayList<>();
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   121
            entries.add("classes");
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   122
            entries.add("classes/class");
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   123
            test(entries);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   124
        }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   125
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   126
        {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   127
            // Add an entry that is wrongly prefixed by /
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   128
            // /bad//classes/class is the resource added
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   129
            // /bad/classes/class is the metadata node built.
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   130
            List<String> entries = new ArrayList<>();
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   131
            entries.add("/classes/class");
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   132
            test(entries);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   133
        }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   134
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   135
        {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   136
            // Trailing '/' is wrong
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   137
            List<String> entries = new ArrayList<>();
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   138
            entries.add("classes/class/");
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   139
            test(entries);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   140
        }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   141
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   142
        {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   143
            // Too much '/' characters
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   144
            List<String> entries = new ArrayList<>();
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   145
            entries.add("classes//class/");
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   146
            test(entries);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   147
        }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   148
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   149
        {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   150
            // Too much '/' characters
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   151
            List<String> entries = new ArrayList<>();
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   152
            entries.add("classes/////class/");
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   153
            test(entries);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   154
        }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   155
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   156
        {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   157
            // Single '/' character
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   158
            List<String> entries = new ArrayList<>();
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   159
            entries.add("/");
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   160
            test(entries);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   161
        }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   162
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   163
        {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   164
            // 2 '/' characters
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   165
            List<String> entries = new ArrayList<>();
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   166
            entries.add("//");
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   167
            test(entries);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   168
        }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   169
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   170
        {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   171
            // 3 '/' characters
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   172
            List<String> entries = new ArrayList<>();
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   173
            entries.add("///");
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   174
            test(entries);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   175
        }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   176
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   177
        {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   178
            // no character
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   179
            List<String> entries = new ArrayList<>();
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   180
            entries.add("");
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   181
            test(entries);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   182
        }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   183
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   184
        {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   185
            // all together
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   186
            List<String> entries = new ArrayList<>();
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   187
            entries.add("");
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   188
            entries.add("///");
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   189
            entries.add("//");
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   190
            entries.add("/");
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   191
            entries.add("classes/////class/");
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   192
            entries.add("classes//class/");
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   193
            entries.add("classes/class/");
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   194
            entries.add("/classes/class");
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   195
            entries.add("classes");
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   196
            entries.add("classes/class");
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   197
            test(entries);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   198
        }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   199
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   200
    }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   201
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   202
    private static void test(List<String> entries) throws Exception {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   203
        TestArchive arch = new TestArchive("bad", entries);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   204
        Set<Archive> archives = new HashSet<>();
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   205
        archives.add(arch);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   206
        ImageBuilder noopBuilder = new ImageBuilder() {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   207
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   208
            @Override
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   209
            public DataOutputStream getJImageOutputStream() {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   210
                return new DataOutputStream(new ByteArrayOutputStream());
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   211
            }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   212
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   213
            @Override
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   214
            public ExecutableImage getExecutableImage() {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   215
                return null;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   216
            }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   217
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   218
            @Override
39834
53a6fb443c20 8162538: plugin API should avoid read only pool, have module view separated from resource view and have pool builder to modify
sundar
parents: 39321
diff changeset
   219
            public void storeFiles(ResourcePool content) {
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   220
            }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   221
        };
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   222
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   223
        ImagePluginStack stack = new ImagePluginStack(noopBuilder, Collections.emptyList(),
40556
27f68990ba9d 8147491: module graph consistency checks after jlink plugins operate on module pool
sundar
parents: 39834
diff changeset
   224
                null, false);
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   225
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   226
        ImageFileCreator.create(archives, ByteOrder.nativeOrder(), stack);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   227
    }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   228
}