src/jdk.packager/windows/classes/jdk/packager/internal/windows/WinExeBundler.java
branchJDK-8200758-branch
changeset 56989 0f19096663d1
parent 56982 e094d5483bd6
child 57011 7df1e4bf870a
equal deleted inserted replaced
56988:3cb9af04c779 56989:0f19096663d1
   505 
   505 
   506     // name of post-image script
   506     // name of post-image script
   507     private File getConfig_Script(Map<String, ? super Object> p) {
   507     private File getConfig_Script(Map<String, ? super Object> p) {
   508         return new File(EXE_IMAGE_DIR.fetchFrom(p),
   508         return new File(EXE_IMAGE_DIR.fetchFrom(p),
   509                 APP_NAME.fetchFrom(p) + "-post-image.wsf");
   509                 APP_NAME.fetchFrom(p) + "-post-image.wsf");
   510     }
       
   511 
       
   512     protected void saveConfigFiles(Map<String, ? super Object> p) {
       
   513         try {
       
   514             File configRoot = CONFIG_ROOT.fetchFrom(p);
       
   515             if (getConfig_ExeProjectFile(p).exists()) {
       
   516                 IOUtils.copyFile(getConfig_ExeProjectFile(p),
       
   517                         new File(configRoot,
       
   518                         getConfig_ExeProjectFile(p).getName()));
       
   519             }
       
   520             if (getConfig_Script(p).exists()) {
       
   521                 IOUtils.copyFile(getConfig_Script(p),
       
   522                         new File(configRoot,
       
   523                          getConfig_Script(p).getName()));
       
   524             }
       
   525             if (getConfig_SmallInnoSetupIcon(p).exists()) {
       
   526                 IOUtils.copyFile(getConfig_SmallInnoSetupIcon(p),
       
   527                         new File(configRoot,
       
   528                         getConfig_SmallInnoSetupIcon(p).getName()));
       
   529             }
       
   530             Log.info(MessageFormat.format(
       
   531                         getString("message.config-save-location"),
       
   532                         configRoot.getAbsolutePath()));
       
   533         } catch (IOException ioe) {
       
   534             ioe.printStackTrace();
       
   535         }
       
   536     }
   510     }
   537 
   511 
   538     private String getAppIdentifier(Map<String, ? super Object> p) {
   512     private String getAppIdentifier(Map<String, ? super Object> p) {
   539         String nm = IDENTIFIER.fetchFrom(p);
   513         String nm = IDENTIFIER.fetchFrom(p);
   540 
   514