Skip to content

Commit

Permalink
Restore asterisk expansion in ImageClasspath property of macro options
Browse files Browse the repository at this point in the history
  • Loading branch information
olpaw committed Jan 26, 2023
1 parent 537bede commit 47755d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private void applyEnabled(MacroOption.EnabledOption enabledOption, String argume
boolean explicitImageModulePath = enabledOption.forEachPropertyValue(config,
"ImageModulePath", entry -> nativeImage.addImageModulePath(Path.of((entry))), PATH_SEPARATOR_REGEX);
boolean explicitImageClasspath = enabledOption.forEachPropertyValue(config,
"ImageClasspath", entry -> nativeImage.addImageClasspath(Path.of((entry))), PATH_SEPARATOR_REGEX);
"ImageClasspath", entry -> NativeImage.expandAsteriskClassPathElement(entry).forEach(nativeImage::addImageClasspath), PATH_SEPARATOR_REGEX);
if (!explicitImageModulePath && !explicitImageClasspath) {
NativeImage.getJars(imageJarsDirectory).forEach(nativeImage::addImageClasspath);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1690,7 +1690,7 @@ void addCustomImageClasspath(String classpath) {
}
}

public List<Path> expandAsteriskClassPathElement(String cp) {
public static List<Path> expandAsteriskClassPathElement(String cp) {
String separators = Pattern.quote(File.separator);
if (OS.getCurrent().equals(OS.WINDOWS)) {
separators += "/"; /* on Windows also / is accepted as valid separator */
Expand Down

0 comments on commit 47755d2

Please sign in to comment.