Skip to content

Commit

Permalink
Upgrade to Sfera v1.8.2 + Java 17 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
giampiero7 committed Oct 28, 2024
1 parent a036036 commit 324df6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>cc.sferalabs.sfera.apps</groupId>
<artifactId>webapp</artifactId>
<version>1.4.1</version>
<version>1.4.3</version>

<name>Sfera Web App</name>
<description>Sfera Web App</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ static void lookForPluginsOverwritingWebapp() {
}
for (Plugin plugin : Plugins.getAll().values()) {
if (!plugin.getId().equals(webAppPluginId)) {
try (FileSystem pluginFs = FileSystems.newFileSystem(plugin.getPath(), null)) {
try (FileSystem pluginFs = FileSystems.newFileSystem(plugin.getPath(), (ClassLoader) null)) {
Path webappDir = pluginFs.getPath("webapp");
if (Files.exists(webappDir) && Files.isDirectory(webappDir)) {
pluginsOverwritingWebapp.add(plugin.getPath());
Expand Down Expand Up @@ -154,7 +154,7 @@ private static Path getWebAppResource(Path path) throws NoSuchFileException, IOE
*/
private static Path getPluginResource(Path plugin, Path path)
throws NoSuchFileException, IOException {
FileSystem fs = FileSystems.newFileSystem(plugin, null);
FileSystem fs = FileSystems.newFileSystem(plugin, (ClassLoader) null);
Path pPath = fs.getPath(path.toString());
if (pPath != null && Files.exists(pPath)) {
return pPath;
Expand Down

0 comments on commit 324df6e

Please sign in to comment.