Skip to content

Commit 0691ee1

Browse files
Remove dead code duplicating checks in DeployParams
1 parent f06b4df commit 0691ee1

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

src/jdk.jpackage/share/classes/jdk/jpackage/internal/StandardBundlerParam.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -582,16 +582,6 @@ static Path getPredefinedAppImage(Map<String, ? super Object> params) {
582582
static void copyPredefinedRuntimeImage(Map<String, ? super Object> params,
583583
ApplicationLayout appLayout) throws IOException, ConfigException {
584584
Path topImage = PREDEFINED_RUNTIME_IMAGE.fetchFrom(params);
585-
if (!IOUtils.exists(topImage)) {
586-
throw new ConfigException(
587-
MessageFormat.format(I18N.getString(
588-
"message.runtime-image-dir-does-not-exist"),
589-
PREDEFINED_RUNTIME_IMAGE.getID(),
590-
topImage.toString()),
591-
MessageFormat.format(I18N.getString(
592-
"message.runtime-image-dir-does-not-exist.advice"),
593-
PREDEFINED_RUNTIME_IMAGE.getID()));
594-
}
595585

596586
if (OperatingSystem.isMacOS()) {
597587
// On Mac topImage can be runtime root or runtime home.

src/jdk.jpackage/share/classes/jdk/jpackage/internal/resources/MainResources.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ message.creating-app-bundle=Creating app package: {0} in {1}
3838
message.app-image-dir-does-not-exist=Specified application image directory {0}: {1} does not exist
3939
message.app-image-dir-does-not-exist.advice=Confirm that the value for {0} exists
4040
message.runtime-image-dir-does-not-exist=Specified runtime image directory {0}: {1} does not exist
41-
message.runtime-image-dir-does-not-exist.advice=Confirm that the value for {0} exists
4241
message.resource-dir-does-not-exist=Specified resource directory {0}: {1} does not exist
4342
message.debug-working-directory=Kept working directory for debug: {0}
4443
message.bundle-created=Succeeded in building {0} package

0 commit comments

Comments
 (0)