src/jdk.jpackage/linux/classes/jdk/jpackage/internal/LinuxAppImageBuilder.java
branchJDK-8200758-branch
changeset 57091 06bc4bd64599
parent 57078 db003bfc5bf7
child 57106 ea870b9ce89a
equal deleted inserted replaced
57080:bd4ce7f9ea2c 57091:06bc4bd64599
    22  * or visit www.oracle.com if you need additional information or have any
    22  * or visit www.oracle.com if you need additional information or have any
    23  * questions.
    23  * questions.
    24  */
    24  */
    25 
    25 
    26 package jdk.jpackage.internal;
    26 package jdk.jpackage.internal;
    27 
       
    28 import jdk.jpackage.internal.resources.LinuxResources;
       
    29 
    27 
    30 import java.io.File;
    28 import java.io.File;
    31 import java.io.FileInputStream;
    29 import java.io.FileInputStream;
    32 import java.io.FileOutputStream;
    30 import java.io.FileOutputStream;
    33 import java.io.IOException;
    31 import java.io.IOException;
   180     public Path getAppModsDir() {
   178     public Path getAppModsDir() {
   181         return appModsDir;
   179         return appModsDir;
   182     }
   180     }
   183 
   181 
   184     @Override
   182     @Override
   185     public InputStream getResourceAsStream(String name) {
       
   186         return LinuxResources.class.getResourceAsStream(name);
       
   187     }
       
   188 
       
   189     @Override
       
   190     public void prepareApplicationFiles() throws IOException {
   183     public void prepareApplicationFiles() throws IOException {
   191         Map<String, ? super Object> originalParams = new HashMap<>(params);
   184         Map<String, ? super Object> originalParams = new HashMap<>(params);
   192 
   185 
   193         // create the primary launcher
   186         // create the primary launcher
   194         createLauncherForEntryPoint(params, root);
   187         createLauncherForEntryPoint(params, root);