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