Skip to content

Commit f810e23

Browse files
DeployParams: replace {"ERR_MissingArgument", "--input"} with "error.no-input-parameter" as the error is not missing argument of --input parameter, but missing --input parameter itself.
1 parent 656a8a3 commit f810e23

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,7 @@ public void validate() throws PackagerException {
166166
}
167167
} else {
168168
if (!hasInput && !hasAppImage) {
169-
throw new PackagerException(
170-
"ERR_MissingArgument", "--input");
169+
throw new PackagerException("error.no-input-parameter");
171170
}
172171
}
173172
} else {

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,6 @@ private static LauncherData createNonModular(
185185
}
186186

187187
Path mainJarDir = StandardBundlerParam.SOURCE_DIR.fetchFrom(params);
188-
if (mainJarDir == null && launcherData.qualifiedClassName == null) {
189-
throw new ConfigException(I18N.getString("error.no-input-parameter"),
190-
null);
191-
}
192188

193189
final Path mainJarPath;
194190
if (launcherData.mainJarName != null && mainJarDir != null) {

0 commit comments

Comments
 (0)