equal
deleted
inserted
replaced
35 import jdk.packager.internal.StandardBundlerParam; |
35 import jdk.packager.internal.StandardBundlerParam; |
36 import jdk.packager.internal.Arguments; |
36 import jdk.packager.internal.Arguments; |
37 import jdk.packager.internal.UnsupportedPlatformException; |
37 import jdk.packager.internal.UnsupportedPlatformException; |
38 import jdk.packager.internal.builders.mac.MacAppImageBuilder; |
38 import jdk.packager.internal.builders.mac.MacAppImageBuilder; |
39 import jdk.packager.internal.resources.mac.MacResources; |
39 import jdk.packager.internal.resources.mac.MacResources; |
40 |
|
41 import jdk.packager.internal.JLinkBundlerHelper; |
40 import jdk.packager.internal.JLinkBundlerHelper; |
42 |
41 |
43 import java.io.File; |
42 import java.io.File; |
44 import java.io.IOException; |
43 import java.io.IOException; |
45 import java.math.BigInteger; |
44 import java.math.BigInteger; |
307 throw new ConfigException(re); |
306 throw new ConfigException(re); |
308 } |
307 } |
309 } |
308 } |
310 } |
309 } |
311 |
310 |
312 //to be used by chained bundlers, e.g. by EXE bundler to avoid |
311 // to be used by chained bundlers, e.g. by EXE bundler to avoid |
313 // skipping validation if p.type does not include "image" |
312 // skipping validation if p.type does not include "image" |
314 public boolean doValidate(Map<String, ? super Object> p) |
313 public boolean doValidate(Map<String, ? super Object> p) |
315 throws UnsupportedPlatformException, ConfigException { |
314 throws UnsupportedPlatformException, ConfigException { |
316 if (Platform.getPlatform() != Platform.MAC) { |
315 if (Platform.getPlatform() != Platform.MAC) { |
317 throw new UnsupportedPlatformException(); |
316 throw new UnsupportedPlatformException(); |
514 @Override |
513 @Override |
515 public boolean supported() { |
514 public boolean supported() { |
516 return Platform.getPlatform() == Platform.MAC; |
515 return Platform.getPlatform() == Platform.MAC; |
517 } |
516 } |
518 |
517 |
519 // private void createLauncherForEntryPoint(Map<String, ? super Object> p, |
|
520 // File rootDirectory) throws IOException { |
|
521 // prepareConfigFiles(p); |
|
522 // |
|
523 // if (LAUNCHER_CFG_FORMAT.fetchFrom(p).equals(CFG_FORMAT_PROPERTIES)) { |
|
524 // writeCfgFile(p, rootDirectory); |
|
525 // } else { |
|
526 // writeCfgFile(p, new File(rootDirectory, getLauncherCfgName(p)), |
|
527 // "$APPDIR/PlugIns/Java.runtime"); |
|
528 // } |
|
529 // |
|
530 // // Copy executable root folder |
|
531 // File executableFile = new File(rootDirectory, |
|
532 // "Contents/MacOS/" + getLauncherName(p)); |
|
533 // IOUtils.copyFromURL( |
|
534 // RAW_EXECUTABLE_URL.fetchFrom(p), |
|
535 // executableFile); |
|
536 // executableFile.setExecutable(true, false); |
|
537 // |
|
538 // } |
|
539 // |
|
540 |
|
541 } |
518 } |