Skip to content

Commit

Permalink
SLOMNI-25 Only extract analyzer ZIP from plugin JAR
Browse files Browse the repository at this point in the history
  • Loading branch information
jblievremont committed Nov 7, 2024
1 parent 51f6b98 commit 57b32ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private void unzipAnalyzerPlugin() {
var analyzerPluginPath = configuration.get(CSharpPropertyDefinitions.getAnalyzerPath()).orElse(null);
try (InputStream analyzerPlugin = new FileInputStream(analyzerPluginPath)) {
requireNonNull(analyzerPlugin, "Plugin jar not found");
ZipUtils.unzip(analyzerPlugin, pluginUnzipDir, ze -> ze.getName().endsWith(".zip") || ze.getName().endsWith(".json") || ze.getName().endsWith(".html"));
ZipUtils.unzip(analyzerPlugin, pluginUnzipDir, ze -> ze.getName().endsWith(".zip"));
analyzerZipPath = Stream.of(new File(pluginUnzipDir, "static").listFiles((dir, name) -> name.endsWith(".zip")))
.findFirst()
.orElseThrow(() -> new IllegalStateException("Unable to find analyzer ZIP"))
Expand Down

0 comments on commit 57b32ae

Please sign in to comment.