Skip to content

Commit

Permalink
[fix] file system in the installer is now closed after use
Browse files Browse the repository at this point in the history
Merge-request: BAZEL-MR-744
Merged-by: Marcin Abramowicz <marcin.abramowicz@jetbrains.com>
  • Loading branch information
abrams27 authored and qodana-bot committed Jan 3, 2024
1 parent 7cec833 commit 2f86f1d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ abstract class EnvironmentCreator(private val projectRootDir: Path) {
javaClass.getResource(aspectsJarPath)?.let {
val fileSystem = FileSystems.newFileSystem(it.toURI(), emptyMap<String, String>())
copyFileTree(fileSystem.getPath(aspectsJarPath), destinationPath)
fileSystem.close()
} ?: error("Missing aspects resource")


Expand Down

0 comments on commit 2f86f1d

Please sign in to comment.