< prev index next >
src/jdk.jpackage/share/classes/jdk/jpackage/internal/Arguments.java
Print this page
@@ -459,11 +459,11 @@
// display error for arguments that are not supported
// for current configuration.
validateArguments();
- addResources(deployParams, input);
+ addResources(deployParams, input, mainJarPath);
List<Map<String, ? super Object>> launchersAsMap =
new ArrayList<>();
for (AddLauncherArguments sl : addLaunchers) {
@@ -645,11 +645,11 @@
}
}
}
private void addResources(DeployParams deployParams,
- String inputdir) throws PackagerException {
+ String inputdir, String mainJar) throws PackagerException {
if (inputdir == null || inputdir.isEmpty()) {
return;
}
@@ -670,11 +670,11 @@
} catch (IOException e) {
Log.error("Unable to add resources: " + e.getMessage());
}
fileNames.forEach(file -> deployParams.addResource(baseDir, file));
- deployParams.setClasspath();
+ deployParams.setClasspath(mainJar);
}
static CLIOptions toCLIOption(String arg) {
CLIOptions option;
if ((option = argIds.get(arg)) == null) {
< prev index next >