Skip to content

Commit bb24d5f

Browse files
Replace {"ERR_MissingArgument", "--input"} with more specialized "error.no-input-parameter" to keep in sync with LauncherData.
1 parent d0cba94 commit bb24d5f

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)