Skip to content

Commit

Permalink
🐛 Fix PolyglotDeployer JS plugins path for new packaging with resthea…
Browse files Browse the repository at this point in the history
…rt-common.jar in /plugins/lib
  • Loading branch information
ujibang committed Aug 21, 2024
1 parent a3aa3fd commit c602cd4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,11 @@ private Path getPluginsDirectory(Map<String, Object> args) {
} else {
// this is to allow specifying the plugins directory path
// relative to the jar (also working when running from classes)
var location = PluginsRegistry.class.getProtectionDomain().getCodeSource().getLocation();
var location = PolyglotDeployer.class.getProtectionDomain().getCodeSource().getLocation();

File locationFile = new File(location.getPath());

pluginsDir = locationFile.getParent() + File.separator + pluginsDir;
pluginsDir = locationFile.getParent();

return FileSystems.getDefault().getPath(pluginsDir);
}
Expand Down

0 comments on commit c602cd4

Please sign in to comment.