src/jdk.jpackage/windows/classes/jdk/jpackage/internal/WindowsAppImageBuilder.java
branchJDK-8200758-branch
changeset 57446 5a5b85f00a63
parent 57438 4a31db8d42bd
child 57450 82c78b40b39d
equal deleted inserted replaced
57445:405ddd80496e 57446:5a5b85f00a63
    72             "WinLauncher.template";
    72             "WinLauncher.template";
    73 
    73 
    74     private final Path root;
    74     private final Path root;
    75     private final Path appDir;
    75     private final Path appDir;
    76     private final Path appModsDir;
    76     private final Path appModsDir;
       
    77     private final String relativeModsDir;
    77     private final Path runtimeDir;
    78     private final Path runtimeDir;
    78     private final Path mdir;
    79     private final Path mdir;
    79     private final Path binDir;
    80     private final Path binDir;
    80 
    81 
    81     private final Map<String, ? super Object> params;
    82     private final Map<String, ? super Object> params;
   122         this.params = config;
   123         this.params = config;
   123 
   124 
   124         this.root = imageOutDir.resolve(APP_NAME.fetchFrom(params));
   125         this.root = imageOutDir.resolve(APP_NAME.fetchFrom(params));
   125         this.appDir = root.resolve("app");
   126         this.appDir = root.resolve("app");
   126         this.appModsDir = appDir.resolve("mods");
   127         this.appModsDir = appDir.resolve("mods");
       
   128         this.relativeModsDir = "app/mods";
   127         this.runtimeDir = root.resolve("runtime");
   129         this.runtimeDir = root.resolve("runtime");
   128         this.mdir = runtimeDir.resolve("lib");
   130         this.mdir = runtimeDir.resolve("lib");
   129         this.binDir = root.resolve("bin");
   131         this.binDir = root.resolve("bin");
   130         Files.createDirectories(appDir);
   132         Files.createDirectories(appDir);
   131         Files.createDirectories(runtimeDir);
   133         Files.createDirectories(runtimeDir);
   139 
   141 
   140         this.params = null;
   142         this.params = null;
   141         this.root = imageOutDir.resolve(jreName);
   143         this.root = imageOutDir.resolve(jreName);
   142         this.appDir = null;
   144         this.appDir = null;
   143         this.appModsDir = null;
   145         this.appModsDir = null;
       
   146         this.relativeModsDir = null;
   144         this.runtimeDir = root;
   147         this.runtimeDir = root;
   145         this.mdir = runtimeDir.resolve("lib");
   148         this.mdir = runtimeDir.resolve("lib");
   146         this.binDir = null;
   149         this.binDir = null;
   147         Files.createDirectories(runtimeDir);
   150         Files.createDirectories(runtimeDir);
   148     }
   151     }
   192     }
   195     }
   193 
   196 
   194     @Override
   197     @Override
   195     public Path getAppModsDir() {
   198     public Path getAppModsDir() {
   196         return appModsDir;
   199         return appModsDir;
       
   200     }
       
   201 
       
   202     @Override
       
   203     public String getRelativeModsDir() {
       
   204         return relativeModsDir;
   197     }
   205     }
   198 
   206 
   199     @Override
   207     @Override
   200     public void prepareApplicationFiles() throws IOException {
   208     public void prepareApplicationFiles() throws IOException {
   201         Map<String, ? super Object> originalParams = new HashMap<>(params);
   209         Map<String, ? super Object> originalParams = new HashMap<>(params);