407 Log.error(e.getMessage()); 408 } 409 String signingIdentity = 410 DEVELOPER_ID_APP_SIGNING_KEY.fetchFrom(params); 411 if (signingIdentity != null) { 412 signAppBundle(params, root, signingIdentity, 413 BUNDLE_ID_SIGNING_PREFIX.fetchFrom(params), null, null); 414 } 415 restoreKeychainList(params); 416 } 417 } 418 419 private String getLauncherName(Map<String, ? super Object> params) { 420 if (APP_NAME.fetchFrom(params) != null) { 421 return APP_NAME.fetchFrom(params); 422 } else { 423 return MAIN_CLASS.fetchFrom(params); 424 } 425 } 426 427 public static String getLauncherCfgName(Map<String, ? super Object> p) { 428 return "Contents/Java/" + APP_NAME.fetchFrom(p) + ".cfg"; 429 } 430 431 private void copyClassPathEntries(Path javaDirectory) throws IOException { 432 List<RelativeFileSet> resourcesList = 433 APP_RESOURCES_LIST.fetchFrom(params); 434 if (resourcesList == null) { 435 throw new RuntimeException( 436 I18N.getString("message.null-classpath")); 437 } 438 439 for (RelativeFileSet classPath : resourcesList) { 440 File srcdir = classPath.getBaseDirectory(); 441 for (String fname : classPath.getIncludedFiles()) { 442 copyEntry(javaDirectory, srcdir, fname); 443 } 444 } 445 } 446 447 private String getBundleName(Map<String, ? super Object> params) { 448 if (MAC_CF_BUNDLE_NAME.fetchFrom(params) != null) { | 407 Log.error(e.getMessage()); 408 } 409 String signingIdentity = 410 DEVELOPER_ID_APP_SIGNING_KEY.fetchFrom(params); 411 if (signingIdentity != null) { 412 signAppBundle(params, root, signingIdentity, 413 BUNDLE_ID_SIGNING_PREFIX.fetchFrom(params), null, null); 414 } 415 restoreKeychainList(params); 416 } 417 } 418 419 private String getLauncherName(Map<String, ? super Object> params) { 420 if (APP_NAME.fetchFrom(params) != null) { 421 return APP_NAME.fetchFrom(params); 422 } else { 423 return MAIN_CLASS.fetchFrom(params); 424 } 425 } 426 427 public static String getLauncherCfgName( 428 Map<String, ? super Object> params) { 429 return "Contents/Java/" + APP_NAME.fetchFrom(params) + ".cfg"; 430 } 431 432 private void copyClassPathEntries(Path javaDirectory) throws IOException { 433 List<RelativeFileSet> resourcesList = 434 APP_RESOURCES_LIST.fetchFrom(params); 435 if (resourcesList == null) { 436 throw new RuntimeException( 437 I18N.getString("message.null-classpath")); 438 } 439 440 for (RelativeFileSet classPath : resourcesList) { 441 File srcdir = classPath.getBaseDirectory(); 442 for (String fname : classPath.getIncludedFiles()) { 443 copyEntry(javaDirectory, srcdir, fname); 444 } 445 } 446 } 447 448 private String getBundleName(Map<String, ? super Object> params) { 449 if (MAC_CF_BUNDLE_NAME.fetchFrom(params) != null) { |