src/jdk.jpackage/share/classes/jdk/jpackage/internal/AbstractAppImageBuilder.java
equal
deleted
inserted
replaced
69 public abstract void prepareJreFiles( |
69 public abstract void prepareJreFiles( |
70 Map<String, ? super Object> params) throws IOException; |
70 Map<String, ? super Object> params) throws IOException; |
71 public abstract Path getAppDir(); |
71 public abstract Path getAppDir(); |
72 public abstract Path getAppModsDir(); |
72 public abstract Path getAppModsDir(); |
73 |
73 |
74 public Path getRoot() { |
74 public Path getRuntimeRoot() { |
75 return this.root; |
75 return this.root; |
76 } |
76 } |
77 |
77 |
78 protected void copyEntry(Path appDir, File srcdir, String fname) |
78 protected void copyEntry(Path appDir, File srcdir, String fname) |
79 throws IOException { |
79 throws IOException { |
173 } |
173 } |
174 } |
174 } |
175 |
175 |
176 public void writeCfgFile(Map<String, ? super Object> params, |
176 public void writeCfgFile(Map<String, ? super Object> params, |
177 File cfgFileName) throws IOException { |
177 File cfgFileName) throws IOException { |
|
178 cfgFileName.getParentFile().mkdirs(); |
178 cfgFileName.delete(); |
179 cfgFileName.delete(); |
179 File mainJar = JLinkBundlerHelper.getMainJar(params); |
180 File mainJar = JLinkBundlerHelper.getMainJar(params); |
180 ModFile.ModType mainJarType = ModFile.ModType.Unknown; |
181 ModFile.ModType mainJarType = ModFile.ModType.Unknown; |
181 |
182 |
182 if (mainJar != null) { |
183 if (mainJar != null) { |
245 |
246 |
246 File getRuntimeImageDir(File runtimeImageTop) { |
247 File getRuntimeImageDir(File runtimeImageTop) { |
247 return runtimeImageTop; |
248 return runtimeImageTop; |
248 } |
249 } |
249 |
250 |
250 String getCfgAppDir() { |
251 protected String getCfgAppDir() { |
251 return "$APPDIR" + File.separator |
252 return "$APPDIR" + File.separator |
252 + getAppDir().getFileName() + File.separator; |
253 + getAppDir().getFileName() + File.separator; |
253 } |
254 } |
254 |
255 |
255 String getCfgRuntimeDir() { |
256 protected String getCfgRuntimeDir() { |
256 return "$APPDIR" + File.separator + "runtime"; |
257 return "$APPDIR" + File.separator + "runtime"; |
257 } |
258 } |
258 |
259 |
259 String getCfgClassPath(String classpath) { |
260 String getCfgClassPath(String classpath) { |
260 String cfgAppDir = getCfgAppDir(); |
261 String cfgAppDir = getCfgAppDir(); |