equal
deleted
inserted
replaced
180 @Override |
180 @Override |
181 public void prepareApplicationFiles() throws IOException { |
181 public void prepareApplicationFiles() throws IOException { |
182 Map<String, ? super Object> originalParams = new HashMap<>(params); |
182 Map<String, ? super Object> originalParams = new HashMap<>(params); |
183 |
183 |
184 // create the primary launcher |
184 // create the primary launcher |
185 createLauncherForEntryPoint(params, root); |
185 createLauncherForEntryPoint(params); |
186 |
186 |
187 // Copy library to the launcher folder |
187 // Copy library to the launcher folder |
188 try (InputStream is_lib = getResourceAsStream(LIBRARY_NAME)) { |
188 try (InputStream is_lib = getResourceAsStream(LIBRARY_NAME)) { |
189 writeEntry(is_lib, root.resolve(LIBRARY_NAME)); |
189 writeEntry(is_lib, root.resolve(LIBRARY_NAME)); |
190 } |
190 } |
205 } |
205 } |
206 |
206 |
207 @Override |
207 @Override |
208 public void prepareJreFiles() throws IOException {} |
208 public void prepareJreFiles() throws IOException {} |
209 |
209 |
210 private void createLauncherForEntryPoint(Map<String, ? super Object> p, |
210 private void createLauncherForEntryPoint(Map<String, ? super Object> p |
211 Path rootDir) throws IOException { |
211 throws IOException { |
212 // Copy executable to Linux folder |
212 // Copy executable to Linux folder |
213 Path executableFile = root.resolve(getLauncherName(p)); |
213 Path executableFile = root.resolve(getLauncherName(p)); |
214 try (InputStream is_launcher = |
214 try (InputStream is_launcher = |
215 getResourceAsStream("jpackageapplauncher")) { |
215 getResourceAsStream("jpackageapplauncher")) { |
216 writeEntry(is_launcher, executableFile); |
216 writeEntry(is_launcher, executableFile); |