< prev index next >

src/jdk.jpackage/windows/classes/jdk/jpackage/internal/WinAppBundler.java

Print this page




 133                     int index = appName.indexOf(".");
 134                     if (index != -1) {
 135                         appName = appName.substring(0, index);
 136                     }
 137                     if (files.length > 1) {
 138                         Log.error(MessageFormat.format(I18N.getString(
 139                                 "message.multiple-launchers"), appName));
 140                     }
 141                 }
 142                 return appName;
 143             } else {
 144                 return appName;
 145             }
 146         }
 147 
 148         return APP_NAME.fetchFrom(p);
 149     }
 150 
 151     public static String getLauncherRelativePath(
 152             Map<String, ? super Object> p) {
 153         return "bin" + File.separator + getAppName(p) + ".exe";
 154     }
 155 
 156     public boolean bundle(Map<String, ? super Object> p, File outputDirectory)
 157             throws PackagerException {
 158         return doBundle(p, outputDirectory, false) != null;
 159     }
 160 
 161     File doBundle(Map<String, ? super Object> p, File outputDirectory,
 162             boolean dependentTask) throws PackagerException {
 163         if (StandardBundlerParam.isRuntimeInstaller(p)) {
 164             return PREDEFINED_RUNTIME_IMAGE.fetchFrom(p);
 165         } else {
 166             return doAppBundle(p, outputDirectory, dependentTask);
 167         }
 168     }
 169 
 170     File doAppBundle(Map<String, ? super Object> p, File outputDirectory,
 171             boolean dependentTask) throws PackagerException {
 172         try {
 173             File rootDirectory = createRoot(p, outputDirectory, dependentTask,




 133                     int index = appName.indexOf(".");
 134                     if (index != -1) {
 135                         appName = appName.substring(0, index);
 136                     }
 137                     if (files.length > 1) {
 138                         Log.error(MessageFormat.format(I18N.getString(
 139                                 "message.multiple-launchers"), appName));
 140                     }
 141                 }
 142                 return appName;
 143             } else {
 144                 return appName;
 145             }
 146         }
 147 
 148         return APP_NAME.fetchFrom(p);
 149     }
 150 
 151     public static String getLauncherRelativePath(
 152             Map<String, ? super Object> p) {
 153         return getAppName(p) + ".exe";
 154     }
 155 
 156     public boolean bundle(Map<String, ? super Object> p, File outputDirectory)
 157             throws PackagerException {
 158         return doBundle(p, outputDirectory, false) != null;
 159     }
 160 
 161     File doBundle(Map<String, ? super Object> p, File outputDirectory,
 162             boolean dependentTask) throws PackagerException {
 163         if (StandardBundlerParam.isRuntimeInstaller(p)) {
 164             return PREDEFINED_RUNTIME_IMAGE.fetchFrom(p);
 165         } else {
 166             return doAppBundle(p, outputDirectory, dependentTask);
 167         }
 168     }
 169 
 170     File doAppBundle(Map<String, ? super Object> p, File outputDirectory,
 171             boolean dependentTask) throws PackagerException {
 172         try {
 173             File rootDirectory = createRoot(p, outputDirectory, dependentTask,


< prev index next >